|
1 |
| --- Error: tests/neg/i5525.scala:1:14 ----------------------------------------------------------------------------------- |
2 |
| -1 |abstract enum Foo1 {} // error: only access modifiers allowed |
3 |
| - | ^^^^ |
4 |
| - | Only access modifiers are allowed on enum definitions |
5 |
| --- Error: tests/neg/i5525.scala:2:14 ----------------------------------------------------------------------------------- |
6 |
| -2 |final enum Foo2 {} // error: only access modifiers allowed |
7 |
| - | ^^^^ |
8 |
| - | Only access modifiers are allowed on enum definitions |
9 |
| --- Error: tests/neg/i5525.scala:3:14 ----------------------------------------------------------------------------------- |
10 |
| -3 |sealed enum Foo3 {} // error: only access modifiers allowed |
11 |
| - | ^^^^ |
12 |
| - | Only access modifiers are allowed on enum definitions |
13 |
| --- Error: tests/neg/i5525.scala:4:14 ----------------------------------------------------------------------------------- |
14 |
| -4 |implicit enum Foo4 {} // error: only access modifiers allowed |
15 |
| - | ^^^^ |
16 |
| - | Only access modifiers are allowed on enum definitions |
17 |
| --- Error: tests/neg/i5525.scala:5:14 ----------------------------------------------------------------------------------- |
18 |
| -5 |lazy enum Foo5 {} // error: only access modifiers allowed |
19 |
| - | ^^^^ |
20 |
| - | Only access modifiers are allowed on enum definitions |
21 |
| --- Error: tests/neg/i5525.scala:6:14 ----------------------------------------------------------------------------------- |
22 |
| -6 |override enum Foo7 {} // error: only access modifiers allowed |
23 |
| - | ^^^^ |
24 |
| - | Only access modifiers are allowed on enum definitions |
25 |
| --- Error: tests/neg/i5525.scala:7:14 ----------------------------------------------------------------------------------- |
26 |
| -7 |inline enum Foo8 {} // error: only access modifiers allowed |
27 |
| - | ^^^^ |
28 |
| - | Only access modifiers are allowed on enum definitions |
29 |
| --- Error: tests/neg/i5525.scala:8:14 ----------------------------------------------------------------------------------- |
30 |
| -8 |opaque enum Foo9 {} // error: only access modifiers allowed |
31 |
| - | ^^^^ |
32 |
| - | Only access modifiers are allowed on enum definitions |
33 |
| --- Error: tests/neg/i5525.scala:11:12 ---------------------------------------------------------------------------------- |
| 1 | +-- Error: tests/neg/i5525.scala:1:0 ------------------------------------------------------------------------------------ |
| 2 | +1 |abstract enum Foo1 { case C } // error: only access modifiers allowed |
| 3 | + |^^^^^^^^ |
| 4 | + |This modifier is not allowed on an enum |
| 5 | +-- Error: tests/neg/i5525.scala:2:0 ------------------------------------------------------------------------------------ |
| 6 | +2 |final enum Foo2 { case C } // error: only access modifiers allowed |
| 7 | + |^^^^^ |
| 8 | + |This modifier is not allowed on an enum |
| 9 | +-- Error: tests/neg/i5525.scala:3:0 ------------------------------------------------------------------------------------ |
| 10 | +3 |sealed enum Foo3 { case C } // error: only access modifiers allowed |
| 11 | + |^^^^^^ |
| 12 | + |This modifier is not allowed on an enum |
| 13 | +-- Error: tests/neg/i5525.scala:4:0 ------------------------------------------------------------------------------------ |
| 14 | +4 |implicit enum Foo4 { case C } // error: only access modifiers allowed |
| 15 | + |^^^^^^^^ |
| 16 | + |This modifier is not allowed on an enum |
| 17 | +-- Error: tests/neg/i5525.scala:5:0 ------------------------------------------------------------------------------------ |
| 18 | +5 |lazy enum Foo5 { case C } // error: only access modifiers allowed |
| 19 | + |^^^^ |
| 20 | + |This modifier is not allowed on an enum |
| 21 | +-- Error: tests/neg/i5525.scala:6:0 ------------------------------------------------------------------------------------ |
| 22 | +6 |override enum Foo7 { case C } // error: only access modifiers allowed |
| 23 | + |^^^^^^^^ |
| 24 | + |This modifier is not allowed on an enum |
| 25 | +-- Error: tests/neg/i5525.scala:7:0 ------------------------------------------------------------------------------------ |
| 26 | +7 |inline enum Foo8 { case C } // error: only access modifiers allowed |
| 27 | + |^^^^^^ |
| 28 | + |This modifier is not allowed on an enum |
| 29 | +-- Error: tests/neg/i5525.scala:8:0 ------------------------------------------------------------------------------------ |
| 30 | +8 |opaque enum Foo9 { case C } // error: only access modifiers allowed |
| 31 | + |^^^^^^ |
| 32 | + |This modifier is not allowed on an enum |
| 33 | +-- Error: tests/neg/i5525.scala:11:2 ----------------------------------------------------------------------------------- |
34 | 34 | 11 | abstract case C1() // error: only access modifiers allowed
|
35 |
| - | ^^^^ |
36 |
| - | Only access modifiers are allowed on enum cases |
37 |
| --- Error: tests/neg/i5525.scala:12:12 ---------------------------------------------------------------------------------- |
| 35 | + | ^^^^^^^^ |
| 36 | + | This modifier is not allowed on an enum case |
| 37 | +-- Error: tests/neg/i5525.scala:12:2 ----------------------------------------------------------------------------------- |
38 | 38 | 12 | final case C2() // error: only access modifiers allowed
|
39 |
| - | ^^^^ |
40 |
| - | Only access modifiers are allowed on enum cases |
41 |
| --- Error: tests/neg/i5525.scala:13:12 ---------------------------------------------------------------------------------- |
| 39 | + | ^^^^^ |
| 40 | + | This modifier is not allowed on an enum case |
| 41 | +-- Error: tests/neg/i5525.scala:13:2 ----------------------------------------------------------------------------------- |
42 | 42 | 13 | sealed case C3() // error: only access modifiers allowed
|
43 |
| - | ^^^^ |
44 |
| - | Only access modifiers are allowed on enum cases |
45 |
| --- Error: tests/neg/i5525.scala:14:12 ---------------------------------------------------------------------------------- |
| 43 | + | ^^^^^^ |
| 44 | + | This modifier is not allowed on an enum case |
| 45 | +-- Error: tests/neg/i5525.scala:14:2 ----------------------------------------------------------------------------------- |
46 | 46 | 14 | implicit case C4() // error: only access modifiers allowed
|
47 |
| - | ^^^^ |
48 |
| - | Only access modifiers are allowed on enum cases |
49 |
| --- Error: tests/neg/i5525.scala:15:12 ---------------------------------------------------------------------------------- |
| 47 | + | ^^^^^^^^ |
| 48 | + | This modifier is not allowed on an enum case |
| 49 | +-- Error: tests/neg/i5525.scala:15:2 ----------------------------------------------------------------------------------- |
50 | 50 | 15 | lazy case C5() // error: only access modifiers allowed
|
51 |
| - | ^^^^ |
52 |
| - | Only access modifiers are allowed on enum cases |
53 |
| --- Error: tests/neg/i5525.scala:16:12 ---------------------------------------------------------------------------------- |
| 51 | + | ^^^^ |
| 52 | + | This modifier is not allowed on an enum case |
| 53 | +-- Error: tests/neg/i5525.scala:16:2 ----------------------------------------------------------------------------------- |
54 | 54 | 16 | override case C7() // error: only access modifiers allowed
|
55 |
| - | ^^^^ |
56 |
| - | Only access modifiers are allowed on enum cases |
57 |
| --- Error: tests/neg/i5525.scala:22:12 ---------------------------------------------------------------------------------- |
| 55 | + | ^^^^^^^^ |
| 56 | + | This modifier is not allowed on an enum case |
| 57 | +-- Error: tests/neg/i5525.scala:22:2 ----------------------------------------------------------------------------------- |
58 | 58 | 22 | abstract case C1 // error: only access modifiers allowed
|
59 |
| - | ^^^^ |
60 |
| - | Only access modifiers are allowed on enum cases |
61 |
| --- Error: tests/neg/i5525.scala:23:12 ---------------------------------------------------------------------------------- |
| 59 | + | ^^^^^^^^ |
| 60 | + | This modifier is not allowed on an enum case |
| 61 | +-- Error: tests/neg/i5525.scala:23:2 ----------------------------------------------------------------------------------- |
62 | 62 | 23 | final case C2 // error: only access modifiers allowed
|
63 |
| - | ^^^^ |
64 |
| - | Only access modifiers are allowed on enum cases |
65 |
| --- Error: tests/neg/i5525.scala:24:12 ---------------------------------------------------------------------------------- |
| 63 | + | ^^^^^ |
| 64 | + | This modifier is not allowed on an enum case |
| 65 | +-- Error: tests/neg/i5525.scala:24:2 ----------------------------------------------------------------------------------- |
66 | 66 | 24 | sealed case C3 // error: only access modifiers allowed
|
67 |
| - | ^^^^ |
68 |
| - | Only access modifiers are allowed on enum cases |
69 |
| --- Error: tests/neg/i5525.scala:25:12 ---------------------------------------------------------------------------------- |
| 67 | + | ^^^^^^ |
| 68 | + | This modifier is not allowed on an enum case |
| 69 | +-- Error: tests/neg/i5525.scala:25:2 ----------------------------------------------------------------------------------- |
70 | 70 | 25 | implicit case C4 // error: only access modifiers allowed
|
71 |
| - | ^^^^ |
72 |
| - | Only access modifiers are allowed on enum cases |
73 |
| --- Error: tests/neg/i5525.scala:26:12 ---------------------------------------------------------------------------------- |
| 71 | + | ^^^^^^^^ |
| 72 | + | This modifier is not allowed on an enum case |
| 73 | +-- Error: tests/neg/i5525.scala:26:2 ----------------------------------------------------------------------------------- |
74 | 74 | 26 | lazy case C5 // error: only access modifiers allowed
|
75 |
| - | ^^^^ |
76 |
| - | Only access modifiers are allowed on enum cases |
77 |
| --- Error: tests/neg/i5525.scala:27:12 ---------------------------------------------------------------------------------- |
| 75 | + | ^^^^ |
| 76 | + | This modifier is not allowed on an enum case |
| 77 | +-- Error: tests/neg/i5525.scala:27:2 ----------------------------------------------------------------------------------- |
78 | 78 | 27 | override case C7 // error: only access modifiers allowed
|
79 |
| - | ^^^^ |
80 |
| - | Only access modifiers are allowed on enum cases |
| 79 | + | ^^^^^^^^ |
| 80 | + | This modifier is not allowed on an enum case |
81 | 81 | -- Error: tests/neg/i5525.scala:33:12 ----------------------------------------------------------------------------------
|
82 | 82 | 33 | inline case C10() // error: only access modifiers allowed
|
83 | 83 | | ^^^^
|
84 | 84 | | end of statement expected but 'case' found
|
85 |
| --- Error: tests/neg/i5525.scala:36:11 ---------------------------------------------------------------------------------- |
| 85 | +-- Error: tests/neg/i5525.scala:36:0 ----------------------------------------------------------------------------------- |
86 | 86 | 36 |final enum Foo13 { // error: only access modifiers and `into` allowed
|
87 |
| - | ^^^^^ |
88 |
| - | Only access modifiers are allowed on enum definitions |
| 87 | + |^^^^^ |
| 88 | + |This modifier is not allowed on an enum |
89 | 89 | -- Error: tests/neg/i5525.scala:42:8 -----------------------------------------------------------------------------------
|
90 | 90 | 42 | infix case C2 extends Foo14[Int, Int] // error // error
|
91 | 91 | | ^^^^
|
|
0 commit comments