-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Inductive given using Tuple.Tail can't be derived when tuple is of size >3 #17115
Comments
I got an error in both cases. |
It seems that the match types are not getting simplified in the recursive case. |
I tried this change - inferImplicit(formal, EmptyTree, span) match
+ inferImplicit(formal.simplified, EmptyTree, span) match This fixed the issue but started breaking uses of |
One has to be very, very careful with simplified. It is a heavy high-level operation. It can seem to fix many things, but it also forces too much which can break other things. So best not to use it in places other where it is already used today. |
Hmm for me & on scastie it seemed deterministically fail on the 2nd one, though not sure, maybe there is some context that can influence that behavior. |
For me the first one seems to always work too |
Compiler version
3.2.2 (also tried on 3.3.0-RC3 & 3.1.3)
Minimized code
Output
Expectation
Program compiling successfully and printing
The text was updated successfully, but these errors were encountered: