-
Notifications
You must be signed in to change notification settings - Fork 396
Unit JS default param makes compiler crash with "Found a dangling UndefinedParam" #4684
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
I can reproduce this on all major Scala versions. Thank you for the report. |
Note: Package private is not required. Plain old public method also causes the issue. |
Interesting, it may have been needed for my Scala 3 reproduction since that's where I started from. |
I think the issue is the
|
FWIW: Indeed changing the argument type to |
Ouch. I guess the scalac (and dotc) tree that comes right before that is val x$1: BoxedUnit$ = {
qual$1.baz$default$1();
BoxedUnit$.UNIT
} We could recognize that shape and collapse it to a single |
Fix #4684: Handle Unit parameters with default values in JS types.
… in JS types." This reverts commit 1de54d7.
Scala 3 sibling issue:
The text was updated successfully, but these errors were encountered: