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
I believe this is intentional, extension methods are found using the same mechanism as implicit search which will look for members in the anchors of the types as defined in https://dotty.epfl.ch/docs/reference/changed-features/implicit-resolution.html, this explicitly excludes non-opaque type aliases. The reason for doing so is that type aliases are easily lost (in particular via type inference) and it'd be confusing for implicit search to give different results when that happens. It's maybe something we could revisit if we tried harder to keep type aliases (as proposed in #14586), but it would be a language change.
Compiler version
3.3.1-RC1
Minimized code
Output
Does not compile :
Expectation
Should compile
observations:
Following flavors behave as expected:
The text was updated successfully, but these errors were encountered: