We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.0.2
scala> package x { def f = 42 } -- Error: 1 |package x { def f = 42 } |^^^^^^^ |this kind of statement is not allowed here
There should, as in Scala 2, be some way to play with code that has packages (also nested):
Welcome to Scala 2.13.6 (OpenJDK 64-Bit Server VM, Java 11.0.11). Type in expressions for evaluation. Or try :help. scala> :paste // Entering paste mode (ctrl-D to finish) package X { package X { object X { val x = 42 } } } // Exiting paste mode, now interpreting. scala> X.X.X.x val res0: Int = 42
The text was updated successfully, but these errors were encountered:
Related to issue 6367 opened on April 24, 2019.
Sorry, something went wrong.
Duplicate of lampepfl/dotty-feature-requests#131
Aha. Missed that despite searching for package and repl. Thanks.
No branches or pull requests
Compiler version
3.0.2
Minimized code and output
Expectation
There should, as in Scala 2, be some way to play with code that has packages (also nested):
The text was updated successfully, but these errors were encountered: