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
support val with pattern of > 22 subpats #8468
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8468?orig=1 |
@adriaanm said: foo match { case Foo(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) => } |
@adriaanm said: |
@xeno-by said: |
are there still plans to support this? |
not in Scala 2. I don't know what the Scala 3 situation is on this. if someone wants to check on it we could perhaps add the "fixed in Dotty" label, if it is fixed. I'm pretty tempted to just close the ticket as further changes in this area in Scala 2 seem quite unlikely. Someone from the community would have to step forward with a proposal and then follow it up with an implementation, too. |
I believe the 22 limit has been lifted fully in dotty, so this will be fixed in 3 |
@adriaanm good to know! Thanks! @SethTisue make sense! thanks for the answer! |
Dotty currently gives |
I tried this in a standalone App object and in the REPL with identical outcome.
Reproduce code:
Expected result:
compiles fine
Actual result:
Same happens for
But not for
which compiles fine, as it matches only 22 values.
The text was updated successfully, but these errors were encountered: