-
Notifications
You must be signed in to change notification settings - Fork 1.1k
dotty scalajs toplevel object import compilation failure #9755
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
The title mentions a package object, but the snippet seems to use a top-level definition instead. Which one is it? |
It's toplevel. I'm still getting used to the vocab change. |
There may be other toplevel issues. I'm seeing a problem where a I'll open that separately once I confirm that its a toplevel issue, if it is. |
Not necessarily. I had not tested with top-level vals and defs yet. |
Fix #9755: Add tests for Scala.js top-level native members
Reference: scala-js/scala-js#4183
Minimized code
Output
fails with
Expectation
It should compile.
Note
However, the more traditional way of writing it works:
The text was updated successfully, but these errors were encountered: