Skip to content
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

Explicit main method needed for Scala 3 #11701

Merged
merged 1 commit into from Mar 7, 2023

Conversation

mkurz
Copy link
Member

@mkurz mkurz commented Mar 7, 2023

@mkurz mkurz added the scala3 label Mar 7, 2023
val path = Paths.get(args(0))
Files.createDirectories(path.getParent)
Files.write(path, jsModule.getBytes("UTF-8"))
()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

() was added because of the -Wvalue-discard flag that was added to the scala 3 flags in #11700 as equivalent to -Ywarn-value-discard that already existed for Scala 2.

@mkurz mkurz merged commit 2fc4910 into playframework:main Mar 7, 2023
@mkurz mkurz deleted the scala3_explicit_main_method branch March 7, 2023 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant