|
| 1 | +-- [E200] Syntax Error: tests/neg/17579.scala:5:10 --------------------------------------------------------------------- |
| 2 | +5 | final val v1 = 42 // error: final modifier is not allowed on local definitions |
| 3 | + | ^^^ |
| 4 | + | The final modifier is not allowed on local definitions |
| 5 | +-- [E200] Syntax Error: tests/neg/17579.scala:6:15 --------------------------------------------------------------------- |
| 6 | +6 | final lazy val v2 = 42 // error: final modifier is not allowed on local definitions |
| 7 | + | ^^^ |
| 8 | + | The final modifier is not allowed on local definitions |
| 9 | +-- [E200] Syntax Error: tests/neg/17579.scala:7:10 --------------------------------------------------------------------- |
| 10 | +7 | final def v4 = 42 // error: final modifier is not allowed on local definitions |
| 11 | + | ^^^ |
| 12 | + | The final modifier is not allowed on local definitions |
| 13 | +-- [E200] Syntax Error: tests/neg/17579.scala:8:10 --------------------------------------------------------------------- |
| 14 | +8 | final var v5 = 42 // error: final modifier is not allowed on local definitions |
| 15 | + | ^^^ |
| 16 | + | The final modifier is not allowed on local definitions |
| 17 | +-- [E200] Syntax Error: tests/neg/17579.scala:9:10 --------------------------------------------------------------------- |
| 18 | +9 | final type Foo = String // error: final modifier is not allowed on local definitions |
| 19 | + | ^^^^ |
| 20 | + | The final modifier is not allowed on local definitions |
| 21 | +-- [E088] Syntax Error: tests/neg/17579.scala:14:10 -------------------------------------------------------------------- |
| 22 | +14 | final private val v3 = 42 // error: expected start of definition |
| 23 | + | ^^^^^^^ |
| 24 | + | Expected start of definition |
| 25 | + | |
| 26 | + | longer explanation available when compiling with `-explain` |
| 27 | +-- [E147] Syntax Warning: tests/neg/17579.scala:19:6 ------------------------------------------------------------------- |
| 28 | +19 | final given Object with {} // warning: modifier `final` is redundant for this definition |
| 29 | + | ^^^^^ |
| 30 | + | Modifier final is redundant for this definition |
0 commit comments