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
Improve escape hatch for filter in generator #7525
Conversation
The failing test is roundtripping in quasiquotes, which doesn't understand the partial function with Tuple1 decomposition. Currently:
|
Allow `for (x @ (_: T) <- ts)` workaround using underscore as shown. Because the rewrite happens after patterns are transformed, it was taken as a straight typed pattern.
ce1b16d
to
68a6ae9
Compare
Reviving to add pattern improvements under Jenkins, would you let me know which test was failing? My branch had a bunch of debug added for quasiquotes, but no test. ("Scalacheck tests.") |
Would be nice to support And warn |
Closing for indifference. |
whose indifference? I'm not indifferent! (I think @dwijnand isn't either...?) to be clear, I'm not claiming my non-indifference was externally observable aligning with Scala 3 here, insofar as it proves to be possible, seems appealing |
I think we should implement Scala 3's escape hatch rather than our own. So I'm not indifferent (I'm different) on the what but I'm not in favour of the how here. Unless I'm missing something? |
Allow
for (x @ (_: T) <- ts)
workaround usingunderscore as shown. Because the rewrite happens
after patterns are transformed, it was taken as
a straight typed pattern.