Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
10 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,9 @@ | ||
stmt-expr-discard.scala:5: warning: Line starts with an operator that in future | ||
will be taken as an infix expression continued from the previous line. | ||
To force the previous interpretation as a separate statement, | ||
add an explicit `;`, add an empty line, or remove spaces after the operator. | ||
+ 2 | ||
^ | ||
stmt-expr-discard.scala:6: warning: Line starts with an operator that in future | ||
will be taken as an infix expression continued from the previous line. | ||
To force the previous interpretation as a separate statement, | ||
add an explicit `;`, add an empty line, or remove spaces after the operator. | ||
- 4 | ||
^ | ||
stmt-expr-discard.scala:5: warning: a pure expression does nothing in statement position; multiline expressions may require enclosing parentheses | ||
+ 2 | ||
^ | ||
stmt-expr-discard.scala:6: warning: a pure expression does nothing in statement position; multiline expressions may require enclosing parentheses | ||
- 4 | ||
^ | ||
error: No warnings can be incurred under -Werror. | ||
4 warnings | ||
2 warnings | ||
1 error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// scalac: -Werror -Xlint | ||
// scalac: -Werror -Xlint -Xmigration:2.13 | ||
|
||
class C { | ||
def `c c`(n: Int): Int = n + 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters