Skip to content

Support Automatic Tupling of FunctionN Parameters for N > 22 #5256

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

Closed
nicolasstucki opened this issue Oct 15, 2018 · 1 comment
Closed

Support Automatic Tupling of FunctionN Parameters for N > 22 #5256

nicolasstucki opened this issue Oct 15, 2018 · 1 comment

Comments

@nicolasstucki
Copy link
Contributor

nicolasstucki commented Oct 15, 2018

Currenty we do not support automatic tupling of functionN parameters for N > 22.
Note that TupleN with N > 22 was added after the implementation of autotuppling and this test was missed.

val f23: ((Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int)) => Int = 
  (x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22, x23) => 22

fails with

-- [E086] Syntax Error:
25 |  val f23: ((Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int)) => Int = (x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22, x23) => 22
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |                        wrong number of parameters, expected: 1

Related to #5257

@nicolasstucki
Copy link
Contributor Author

This should be fixed if #5260 and #5257 are fixed.

nicolasstucki added a commit to dotty-staging/dotty that referenced this issue Oct 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant