You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compilation error
identifier expected but 'def' found.
exports, which is a reserved word from Scala3, does not result in a compile error, but a warning is displayed in the console.
[warn] C:\Users\Proudust\source\repos\proudust\play-reserved-word\conf\routes:39:1: Wrap `export` in backticks to use it as an identifier, it will become a keyword in Scala 3.
[warn] GET /export controllers.JavaController.export()
Actual Behavior
It should compile successfully.
The text was updated successfully, but these errors were encountered:
I didn't look into the code, however we might be able to escape all the method we generate with backticks, so at least Scala reserved word can be used. However it's not our priority now, since you can easily work around the problem my using other names. If you want to provide a pull request however, feel free to submit one.
Play Version
2.8.16
API
Java 11, and Scala 2.13.9
Operating System
Windows 11
JDK
Microsoft Build of OpenJSK with Hotspot 11.0.16.1+1 (x64)
Expected Behavior
Create methods for Scala reserved words in your Java or Scala Controller class.
Add the method created in 1. to routes.
Run
sbt run
.I get a compile error.
exports
, which is a reserved word from Scala3, does not result in a compile error, but a warning is displayed in the console.Actual Behavior
It should compile successfully.
The text was updated successfully, but these errors were encountered: