|
10 | 10 | | Not found: A |
11 | 11 | | |
12 | 12 | | longer explanation available when compiling with `-explain` |
13 | | --- Warning: tests/neg/i15784.scala:7:8 --------------------------------------------------------------------------------- |
| 13 | +-- Warning: tests/neg/i15784.scala:7:7 --------------------------------------------------------------------------------- |
14 | 14 | 7 | case X: Int => X // warn |
15 | | - | ^ |
16 | | - | Type ascriptions after patterns other than: |
17 | | - | * variable pattern, e.g. `case x: String =>` |
18 | | - | * number literal pattern, e.g. `case 10.5: Double =>` |
19 | | - | are no longer supported. Remove the type ascription or move it to a separate variable pattern. |
20 | | --- Warning: tests/neg/i15784.scala:10:12 ------------------------------------------------------------------------------- |
| 15 | + | ^ |
| 16 | + | Type ascriptions after patterns other than: |
| 17 | + | * variable pattern, e.g. `case x: String =>` |
| 18 | + | * number literal pattern, e.g. `case 10.5: Double =>` |
| 19 | + | are no longer supported. Remove the type ascription or move it to a separate variable pattern. |
| 20 | +-- Warning: tests/neg/i15784.scala:10:7 -------------------------------------------------------------------------------- |
21 | 21 | 10 | case `Int`: Int => `Int` // warn |
22 | | - | ^ |
23 | | - | Type ascriptions after patterns other than: |
24 | | - | * variable pattern, e.g. `case x: String =>` |
25 | | - | * number literal pattern, e.g. `case 10.5: Double =>` |
26 | | - | are no longer supported. Remove the type ascription or move it to a separate variable pattern. |
| 22 | + | ^^^^^ |
| 23 | + | Type ascriptions after patterns other than: |
| 24 | + | * variable pattern, e.g. `case x: String =>` |
| 25 | + | * number literal pattern, e.g. `case 10.5: Double =>` |
| 26 | + | are no longer supported. Remove the type ascription or move it to a separate variable pattern. |
0 commit comments