$PropertyType lookups on class parameters allows variance abuse to sneak through class method checking
Opened this issue · 0 comments
popham commented
Flow version: v0.101.0
Expected behavior
If I $PropertyType lookup a covariant property within a class parameter for a class method's parameter (a contravariant position), then Flow should error.
Actual behavior
Flow accepts the method, leading to inconsistencies.