-
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.
And check it with a pos checkfile.
- Loading branch information
Showing
8 changed files
with
151 additions
and
89 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,72 @@ | ||
-- [E029] Pattern Match Exhaustivity Warning: tests/warn/i16451.scala:12:73 -------------------------------------------- | ||
12 | def test_correct(x: Wrapper[Color]): Option[Wrapper[Color.Red.type]] = x match // error: inexhaustive | ||
| ^ | ||
| match may not be exhaustive. | ||
| | ||
| It would fail on pattern case: Wrapper(_) | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E030] Match case Unreachable Warning: tests/warn/i16451.scala:25:9 ------------------------------------------------- | ||
25 | case x: Wrapper[Color.Red.type] => Some(x) // error: unreachable // error: unchecked | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| Unreachable case | ||
-- [E030] Match case Unreachable Warning: tests/warn/i16451.scala:29:9 ------------------------------------------------- | ||
29 | case x: Wrapper[Color.Red.type] => Some(x) // error: unreachable // error: unchecked | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| Unreachable case | ||
-- [E030] Match case Unreachable Warning: tests/warn/i16451.scala:34:11 ------------------------------------------------ | ||
34 | case x: Wrapper[Color.Red.type] => x // error: unreachable // error: unchecked | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| Unreachable case | ||
-- [E030] Match case Unreachable Warning: tests/warn/i16451.scala:39:11 ------------------------------------------------ | ||
39 | case x: Wrapper[Color.Red.type] => x // error: unreachable // error: unchecked | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| Unreachable case | ||
-- [E092] Pattern Match Unchecked Warning: tests/warn/i16451.scala:13:9 ------------------------------------------------ | ||
13 | case x: Wrapper[Color.Red.type] => Some(x) // error: unchecked | ||
| ^ | ||
|the type test for Wrapper[(Color.Red : Color)] cannot be checked at runtime because its type arguments can't be determined from Wrapper[Color] | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E092] Pattern Match Unchecked Warning: tests/warn/i16451.scala:14:9 ------------------------------------------------ | ||
14 | case x: Wrapper[Color.Green.type] => None // error: unchecked | ||
| ^ | ||
|the type test for Wrapper[(Color.Green : Color)] cannot be checked at runtime because its type arguments can't be determined from Wrapper[Color] | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E092] Pattern Match Unchecked Warning: tests/warn/i16451.scala:21:9 ------------------------------------------------ | ||
21 | case x: Wrapper[Color.Red.type] => Some(x) // error: unchecked | ||
| ^ | ||
|the type test for Wrapper[(Color.Red : Color)] cannot be checked at runtime because its type arguments can't be determined from Any | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E092] Pattern Match Unchecked Warning: tests/warn/i16451.scala:22:9 ------------------------------------------------ | ||
22 | case x: Wrapper[Color.Green.type] => None // error: unchecked | ||
| ^ | ||
|the type test for Wrapper[(Color.Green : Color)] cannot be checked at runtime because its type arguments can't be determined from Any | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E092] Pattern Match Unchecked Warning: tests/warn/i16451.scala:25:9 ------------------------------------------------ | ||
25 | case x: Wrapper[Color.Red.type] => Some(x) // error: unreachable // error: unchecked | ||
| ^ | ||
|the type test for Wrapper[(Color.Red : Color)] cannot be checked at runtime because its type arguments can't be determined from Wrapper[Color] | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E092] Pattern Match Unchecked Warning: tests/warn/i16451.scala:29:9 ------------------------------------------------ | ||
29 | case x: Wrapper[Color.Red.type] => Some(x) // error: unreachable // error: unchecked | ||
| ^ | ||
|the type test for Wrapper[(Color.Red : Color)] cannot be checked at runtime because its type arguments can't be determined from A1 | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E092] Pattern Match Unchecked Warning: tests/warn/i16451.scala:34:11 ----------------------------------------------- | ||
34 | case x: Wrapper[Color.Red.type] => x // error: unreachable // error: unchecked | ||
| ^ | ||
|the type test for Wrapper[(Color.Red : Color)] cannot be checked at runtime because its type arguments can't be determined from Wrapper[Color] | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E092] Pattern Match Unchecked Warning: tests/warn/i16451.scala:39:11 ----------------------------------------------- | ||
39 | case x: Wrapper[Color.Red.type] => x // error: unreachable // error: unchecked | ||
| ^ | ||
|the type test for Wrapper[(Color.Red : Color)] cannot be checked at runtime because its type arguments can't be determined from Wrapper[Color] | ||
| | ||
| longer explanation available when compiling with `-explain` |
Oops, something went wrong.