You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found: (0:Int)
Required:F[A]
where:F is a typein method foo which is an alias of [X] =>>Int
Expectation
By pattern matching we derive the GADT bound F := [X] =>> Int (as shown in the error message), but during type comparison the compiler will not recognize F[X] == Int for the applied type.
The text was updated successfully, but these errors were encountered:
If we are comparing A <:< F[X] and F has a lower bound G, it would be safe to downcast and turn to compare A <:< G[X]. Should we add the downcasting logic in the type comparer?
Compiler version
3.0.1
Minimized code
Output
Expectation
By pattern matching we derive the GADT bound
F := [X] =>> Int
(as shown in the error message), but during type comparison the compiler will not recognizeF[X] == Int
for the applied type.The text was updated successfully, but these errors were encountered: