|
1 | 1 | -- [E030] Match case Unreachable Warning: tests/warn/i16451.scala:14:9 ------------------------------------------------- |
2 | | -14 | case x: Wrapper[Color.Green.type] => None // warn: unreachable // warn: unchecked |
| 2 | +14 | case x: Wrapper[Color.Green.type] => None // warn: unreachable // also: unchecked (hidden) |
3 | 3 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
4 | 4 | | Unreachable case |
5 | 5 | -- [E030] Match case Unreachable Warning: tests/warn/i16451.scala:22:9 ------------------------------------------------- |
6 | | -22 | case x: Wrapper[Color.Green.type] => None // warn: unreachable // warn: unchecked |
| 6 | +22 | case x: Wrapper[Color.Green.type] => None // warn: unreachable // also: unchecked (hidden) |
7 | 7 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
8 | 8 | | Unreachable case |
9 | 9 | -- [E092] Pattern Match Unchecked Warning: tests/warn/i16451.scala:13:9 ------------------------------------------------ |
|
12 | 12 | |the type test for Wrapper[(Color.Red : Color)] cannot be checked at runtime because its type arguments can't be determined from Wrapper[Color] |
13 | 13 | | |
14 | 14 | | longer explanation available when compiling with `-explain` |
15 | | --- [E092] Pattern Match Unchecked Warning: tests/warn/i16451.scala:14:9 ------------------------------------------------ |
16 | | -14 | case x: Wrapper[Color.Green.type] => None // warn: unreachable // warn: unchecked |
17 | | - | ^ |
18 | | - |the type test for Wrapper[(Color.Green : Color)] cannot be checked at runtime because its type arguments can't be determined from Wrapper[Color] |
19 | | - | |
20 | | - | longer explanation available when compiling with `-explain` |
21 | 15 | -- [E092] Pattern Match Unchecked Warning: tests/warn/i16451.scala:21:9 ------------------------------------------------ |
22 | 16 | 21 | case x: Wrapper[Color.Red.type] => Some(x) // warn: unchecked |
23 | 17 | | ^ |
24 | 18 | |the type test for Wrapper[(Color.Red : Color)] cannot be checked at runtime because its type arguments can't be determined from Any |
25 | 19 | | |
26 | 20 | | longer explanation available when compiling with `-explain` |
27 | | --- [E092] Pattern Match Unchecked Warning: tests/warn/i16451.scala:22:9 ------------------------------------------------ |
28 | | -22 | case x: Wrapper[Color.Green.type] => None // warn: unreachable // warn: unchecked |
29 | | - | ^ |
30 | | - |the type test for Wrapper[(Color.Green : Color)] cannot be checked at runtime because its type arguments can't be determined from Any |
31 | | - | |
32 | | - | longer explanation available when compiling with `-explain` |
33 | 21 | -- [E092] Pattern Match Unchecked Warning: tests/warn/i16451.scala:25:9 ------------------------------------------------ |
34 | 22 | 25 | case x: Wrapper[Color.Red.type] => Some(x) // error: unreachable // error: unchecked |
35 | 23 | | ^ |
|
0 commit comments