-
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
Crash on funky EmptyTuple extractor #13977
Comments
Might be related to #13969 |
Side note: the code above seems to have a side effects in the unapply. The unapplies are assumed to be pure for optimizations. |
Duplicate of #13960 |
I'll pull your case, as an interesting variant. |
But how can anyone have any fun when all the |
Pedantically (I think I've seen Martin make this point in the past), unapply must be idempotent, not strictly pure. |
Pedantically I'm not sure what idempotent would mean in this context. Calling |
Yes, my bad, it must be referentially transparent. |
Compiler version
3.1.0
Minimized code
https://scastie.scala-lang.org/NYbsLZAiTvCvZ6jyWthm0Q
Output (click arrow to expand)
The text was updated successfully, but these errors were encountered: