|
1 | | --- Error: tests/neg/unroll-illegal.scala:6:6 --------------------------------------------------------------------------- |
| 1 | +-- [E202] Declaration Error: tests/neg/unroll-illegal.scala:6:6 -------------------------------------------------------- |
2 | 2 | 6 |class UnrollClass // error |
3 | 3 | | ^ |
4 | 4 | | @unroll is only allowed on a method parameter |
5 | | --- Error: tests/neg/unroll-illegal.scala:9:6 --------------------------------------------------------------------------- |
| 5 | +-- [E202] Declaration Error: tests/neg/unroll-illegal.scala:9:6 -------------------------------------------------------- |
6 | 6 | 9 |trait UnrollTrait // error |
7 | 7 | | ^ |
8 | 8 | | @unroll is only allowed on a method parameter |
9 | | --- Error: tests/neg/unroll-illegal.scala:12:7 -------------------------------------------------------------------------- |
| 9 | +-- [E202] Declaration Error: tests/neg/unroll-illegal.scala:12:7 ------------------------------------------------------- |
10 | 10 | 12 |object UnrollObject // error |
11 | 11 | | ^ |
12 | 12 | | @unroll is only allowed on a method parameter |
13 | | --- Error: tests/neg/unroll-illegal.scala:18:5 -------------------------------------------------------------------------- |
| 13 | +-- [E202] Declaration Error: tests/neg/unroll-illegal.scala:18:5 ------------------------------------------------------- |
14 | 14 | 18 |enum UnrollEnum { case X } // error |
15 | 15 | | ^ |
16 | 16 | | @unroll is only allowed on a method parameter |
17 | | --- Error: tests/neg/unroll-illegal.scala:21:25 ------------------------------------------------------------------------- |
| 17 | +-- [E202] Declaration Error: tests/neg/unroll-illegal.scala:21:25 ------------------------------------------------------ |
18 | 18 | 21 | val annotExpr: Int = 23: @unroll // error |
19 | 19 | | ^ |
20 | 20 | | @unroll is only allowed on a method parameter |
21 | | --- Error: tests/neg/unroll-illegal.scala:22:19 ------------------------------------------------------------------------- |
| 21 | +-- [E202] Declaration Error: tests/neg/unroll-illegal.scala:22:19 ------------------------------------------------------ |
22 | 22 | 22 | type annotType = Int @unroll // error |
23 | 23 | | ^^^^^^^^^^^ |
24 | 24 | | @unroll is only allowed on a method parameter |
25 | | --- Error: tests/neg/unroll-illegal.scala:25:6 -------------------------------------------------------------------------- |
| 25 | +-- [E202] Declaration Error: tests/neg/unroll-illegal.scala:25:6 ------------------------------------------------------- |
26 | 26 | 25 | val unrollVal: Int = 23 // error |
27 | 27 | | ^ |
28 | 28 | | @unroll is only allowed on a method parameter |
29 | | --- Error: tests/neg/unroll-illegal.scala:28:6 -------------------------------------------------------------------------- |
| 29 | +-- [E202] Declaration Error: tests/neg/unroll-illegal.scala:28:6 ------------------------------------------------------- |
30 | 30 | 28 | def unrollDef: Int = 23 // error |
31 | 31 | | ^ |
32 | 32 | | @unroll is only allowed on a method parameter |
33 | | --- Error: tests/neg/unroll-illegal.scala:15:5 -------------------------------------------------------------------------- |
| 33 | +-- [E202] Declaration Error: tests/neg/unroll-illegal.scala:15:5 ------------------------------------------------------- |
34 | 34 | 15 |type UnrollType = Int // error |
35 | 35 | | ^ |
36 | 36 | | @unroll is only allowed on a method parameter |
0 commit comments