-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Param type not taken into account in platform's method param list length limit #18458
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
Labels
Comments
This seems to be a problem in scala 2 as well |
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Aug 28, 2023
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Aug 28, 2023
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Aug 28, 2023
nicolasstucki
added a commit
that referenced
this issue
Aug 28, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler version
3.3.0
Minimized code
Full code: https://scastie.scala-lang.org/9KnRtaQuRaeFc6WaP6ggBQ
Output
In runtime:
Expectation
Compilation error generated by backend. When over 254 parameters are provided, the following error is reported:
However, per JVM spec, it counts Long / Double parameter as 2 "slots" in the arguments list, so they should be counted twice in this limit: https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.3.3
CC: reporter, @prolativ
The text was updated successfully, but these errors were encountered: