-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
178 changed files
with
1,020 additions
and
805 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
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
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
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,6 +1,7 @@ | ||
-- [E092] Pattern Match Error: tests/neg/15981.scala:4:45 -------------------------------------------------------------- | ||
4 | override def equals(any: Any): Boolean = any.isInstanceOf[PosInt] // error | ||
-- [E092] Pattern Match Unchecked Warning: tests/neg/15981.scala:4:45 -------------------------------------------------- | ||
4 | override def equals(any: Any): Boolean = any.isInstanceOf[PosInt] // warn | ||
| ^^^ | ||
| the type test for PosInt cannot be checked at runtime because it's a local class | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
No warnings can be incurred under -Werror. |
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,6 +1,7 @@ | ||
//> using options -Werror | ||
val _ = locally{ | ||
sealed abstract class PosInt(val value: Int) { | ||
override def equals(any: Any): Boolean = any.isInstanceOf[PosInt] // error | ||
override def equals(any: Any): Boolean = any.isInstanceOf[PosInt] // warn | ||
} | ||
} | ||
// nopos-error: No warnings can be incurred under -Werror. |
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,14 +1,15 @@ | ||
//> using options -Werror -explain | ||
|
||
def test = | ||
451.synchronized {} // error | ||
451.synchronized {} // warn | ||
|
||
def test2 = | ||
val x: Integer = 451 | ||
x.synchronized {} // error | ||
x.synchronized {} // warn | ||
|
||
def test3 = | ||
true.synchronized {} // error | ||
true.synchronized {} // warn | ||
|
||
def test4 = | ||
true.hashCode() // success | ||
// nopos-error: No warnings can be incurred under -Werror. |
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,8 +1,9 @@ | ||
-- [E030] Match case Unreachable Error: tests/neg/18493.scala:6:9 ------------------------------------------------------ | ||
6 | case "abc" => // error | ||
-- [E030] Match case Unreachable Warning: tests/neg/18493.scala:6:9 ---------------------------------------------------- | ||
6 | case "abc" => // warn | ||
| ^^^^^ | ||
| Unreachable case | ||
-- [E030] Match case Unreachable Error: tests/neg/18493.scala:12:9 ----------------------------------------------------- | ||
12 | case "abc" => // error | ||
-- [E030] Match case Unreachable Warning: tests/neg/18493.scala:12:9 --------------------------------------------------- | ||
12 | case "abc" => // warn | ||
| ^^^^^ | ||
| Unreachable case | ||
No warnings can be incurred under -Werror. |
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
Oops, something went wrong.