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
Fix#3343: Make baseType work properly with type lambdas
Previously,
`C[Char]`.baseTypeOf(`Traversable[Char]`)
where C := `[X] => List[X]`
returned `Traversable[ParamRef(A)]` instead of `Traversable[Char]`,
because the substitution was done on the type parameters of the class
symbol instead of the type parameters of the type, these are different
when type lambdas are involved. This is fixed by always going through
`AppliedType#superType` when the tycon is not a class.
0 commit comments