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
Better handling of type parameters in constructor pattern
In a constructor pattern `C[T](x)` with some type parameter(s), we have two choices.
1. Interpret it as `C[T].unapply(selector)`
2. Interpret it as `C.unapply[T](selector)`.
So far we always picked the first choice, which means that usually it will fail with a
message such as "`C` does not take type parameters".
In this PR, we pick the second choice if it can be typechecked without errors and
fall back to the first choice otherwise.
0 commit comments