-
Notifications
You must be signed in to change notification settings - Fork 1.1k
NoClassDefFoundError: scala/$repeated$ when using varargs and default arguments #4073
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
Comments
Minimized: object Main {
def main(args:Array[String]): Unit = println(foo(1, 2, 3))
def foo(args: Any*)(arg: String = "foo"): String = arg
} The code that reaches the backend is:
There are two issues with this code
|
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Mar 8, 2018
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Mar 8, 2018
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Mar 9, 2018
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Mar 9, 2018
nicolasstucki
added a commit
that referenced
this issue
Mar 13, 2018
Fix #4073: erase <repeted> type from lifted val for a vararg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With Scala 2.12.4 the following works:
The exact same code with Dotty (0.6 or latest) fails with:
The text was updated successfully, but these errors were encountered: