Skip to content

Conversation

@tannguyencse19
Copy link

Summary

Compare Type::Quantified values with TypeEq and TypeEqCtx so subset checks treat matching type parameters as compatible even when they were created as separate instances

Fixes #1048

Test Plan

cargo test -p pyrefly test_generic_callable_in_condition

@meta-cla meta-cla bot added the cla signed label Dec 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calling generic function in if expr cause "bad-argument-type" error

1 participant