|
| 1 | +-- [E156] Syntax Error: tests/neg/i17738-toplevel-infix.scala:14:10 ---------------------------------------------------- |
| 2 | +14 |infix val toplevelVal = ??? // error |
| 3 | + | ^ |
| 4 | + | Modifier infix is not allowed for this definition |
| 5 | + |-------------------------------------------------------------------------------------------------------------------- |
| 6 | + | Explanation (enabled by `-explain`) |
| 7 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 8 | + | A top-level value cannot be infix. |
| 9 | + -------------------------------------------------------------------------------------------------------------------- |
| 10 | +-- [E156] Syntax Error: tests/neg/i17738-toplevel-infix.scala:15:10 ---------------------------------------------------- |
| 11 | +15 |infix var toplevelVar = ??? // error |
| 12 | + | ^ |
| 13 | + | Modifier infix is not allowed for this definition |
| 14 | + |-------------------------------------------------------------------------------------------------------------------- |
| 15 | + | Explanation (enabled by `-explain`) |
| 16 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 17 | + | A top-level variable cannot be infix. |
| 18 | + -------------------------------------------------------------------------------------------------------------------- |
| 19 | +-- [E156] Syntax Error: tests/neg/i17738-toplevel-infix.scala:16:10 ---------------------------------------------------- |
| 20 | +16 |infix def toplevelDef = ??? // error |
| 21 | + | ^ |
| 22 | + | Modifier infix is not allowed for this definition |
| 23 | + |-------------------------------------------------------------------------------------------------------------------- |
| 24 | + | Explanation (enabled by `-explain`) |
| 25 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 26 | + | A top-level method cannot be infix. |
| 27 | + -------------------------------------------------------------------------------------------------------------------- |
| 28 | +-- [E156] Syntax Error: tests/neg/i17738-toplevel-infix.scala:17:12 ---------------------------------------------------- |
| 29 | +17 |infix given toplevelGiven: Int = ??? // error |
| 30 | + | ^ |
| 31 | + | Modifier infix is not allowed for this definition |
| 32 | + |-------------------------------------------------------------------------------------------------------------------- |
| 33 | + | Explanation (enabled by `-explain`) |
| 34 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 35 | + | A top-level given instance cannot be infix. |
| 36 | + -------------------------------------------------------------------------------------------------------------------- |
| 37 | +-- [E156] Syntax Error: tests/neg/i17738-toplevel-infix.scala:18:19 ---------------------------------------------------- |
| 38 | +18 |infix implicit val toplevelImplicit: Int = ??? // error |
| 39 | + | ^ |
| 40 | + | Modifier infix is not allowed for this definition |
| 41 | + |-------------------------------------------------------------------------------------------------------------------- |
| 42 | + | Explanation (enabled by `-explain`) |
| 43 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 44 | + | A top-level value cannot be infix. |
| 45 | + -------------------------------------------------------------------------------------------------------------------- |
0 commit comments