-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Regression in Scala 3.5.0-RC1 related to implicit search and match types that return type lambdas #20482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
A |
The issue is fixed on #20268 Unfortunately, that PR now has issues with the named tuples, which happen to trigger the following problem with caching of super types: scala3/compiler/src/dotty/tools/dotc/core/Types.scala Lines 113 to 118 in c6fbe6f
Really not sure what to do with that \cc @smarter |
Hmm yeah I forgot about that, it seems we have to get rid of |
Note that in theory at least scala3/compiler/src/dotty/tools/dotc/core/Types.scala Lines 5035 to 5036 in c6fbe6f
snapshot() in a specific scope.
|
I may have blamed |
Or also during match type reduction specifically I suppose. |
tryNormalize used to not recursively check if tycon of applied type was normalizable, this may be necessary in the case of an applied type dealiasing to a type lambda. Fixes scala#20482
tryNormalize used to not recursively check if tycon of applied type was normalizable, this may be necessary in the case of an applied type dealiasing to a type lambda. Fixes scala#20482
Compiler version
3.5.0-RC1, the issue is not present in 3.4.2
Minimized code
https://scastie.scala-lang.org/mrdziuban/lnO61Y1VSSy2xu5NuyAg8w
Output
Expectation
Test.wrapperType
should satisfy the implicit search of thesummon
call.Interestingly, if I change
FooToBar
to not return a type lambda, then everything compiles correctly, i.e.The text was updated successfully, but these errors were encountered: