Skip to content

Add Scala 3 warning options: -Wvalue-discard and -Wnonunit-statement#3251

Open
Dev-CodeBox wants to merge 7 commits intoscala:mainfrom
Dev-CodeBox:doc-scala3-compiler-options
Open

Add Scala 3 warning options: -Wvalue-discard and -Wnonunit-statement#3251
Dev-CodeBox wants to merge 7 commits intoscala:mainfrom
Dev-CodeBox:doc-scala3-compiler-options

Conversation

@Dev-CodeBox
Copy link
Contributor

  • Added -Wvalue-discard to warn when non-Unit expression results are unused (Scala 3).
  • Added -Wnonunit-statement to warn when a statement returns a non-Unit value (Scala 3).
  • Followed the existing YAML structure and formatting; no abbreviations added for -Wnonunit-statement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant