|
| 1 | +-- [E040] Syntax Error: tests/neg/i18750.scala:3:4 --------------------------------------------------------------------- |
| 2 | +3 |val do = 23 // error |
| 3 | + | ^ |
| 4 | + | an identifier expected, but 'do' found |
| 5 | + |--------------------------------------------------------------------------------------------------------------------- |
| 6 | + | Explanation (enabled by `-explain`) |
| 7 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 8 | + | |
| 9 | + | If you want to use 'do' as identifier, you may put it in backticks: `do`. |
| 10 | + --------------------------------------------------------------------------------------------------------------------- |
| 11 | +-- [E040] Syntax Error: tests/neg/i18750.scala:4:4 --------------------------------------------------------------------- |
| 12 | +4 |val if = 23 // error |
| 13 | + | ^ |
| 14 | + | an identifier expected, but 'if' found |
| 15 | + |--------------------------------------------------------------------------------------------------------------------- |
| 16 | + | Explanation (enabled by `-explain`) |
| 17 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 18 | + | |
| 19 | + | If you want to use 'if' as identifier, you may put it in backticks: `if`. |
| 20 | + --------------------------------------------------------------------------------------------------------------------- |
| 21 | +-- [E040] Syntax Error: tests/neg/i18750.scala:5:4 --------------------------------------------------------------------- |
| 22 | +5 |val val = 23 // error |
| 23 | + | ^ |
| 24 | + | an identifier expected, but 'val' found |
| 25 | + |--------------------------------------------------------------------------------------------------------------------- |
| 26 | + | Explanation (enabled by `-explain`) |
| 27 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 28 | + | |
| 29 | + | If you want to use 'val' as identifier, you may put it in backticks: `val`. |
| 30 | + --------------------------------------------------------------------------------------------------------------------- |
| 31 | +-- [E040] Syntax Error: tests/neg/i18750.scala:6:7 --------------------------------------------------------------------- |
| 32 | +6 |val a, if = 23 // error |
| 33 | + | ^^ |
| 34 | + | an identifier expected, but 'if' found |
| 35 | + |--------------------------------------------------------------------------------------------------------------------- |
| 36 | + | Explanation (enabled by `-explain`) |
| 37 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 38 | + | |
| 39 | + | If you want to use 'if' as identifier, you may put it in backticks: `if`. |
| 40 | + --------------------------------------------------------------------------------------------------------------------- |
| 41 | +-- [E040] Syntax Error: tests/neg/i18750.scala:8:4 --------------------------------------------------------------------- |
| 42 | +8 |def do; // error |
| 43 | + | ^^ |
| 44 | + | an identifier expected, but 'do' found |
| 45 | + |--------------------------------------------------------------------------------------------------------------------- |
| 46 | + | Explanation (enabled by `-explain`) |
| 47 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 48 | + | |
| 49 | + | If you want to use 'do' as identifier, you may put it in backticks: `do`. |
| 50 | + --------------------------------------------------------------------------------------------------------------------- |
| 51 | +-- [E040] Syntax Error: tests/neg/i18750.scala:9:4 --------------------------------------------------------------------- |
| 52 | +9 |var do; // error |
| 53 | + | ^ |
| 54 | + | an identifier expected, but 'do' found |
| 55 | + |--------------------------------------------------------------------------------------------------------------------- |
| 56 | + | Explanation (enabled by `-explain`) |
| 57 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 58 | + | |
| 59 | + | If you want to use 'do' as identifier, you may put it in backticks: `do`. |
| 60 | + --------------------------------------------------------------------------------------------------------------------- |
| 61 | +-- [E040] Syntax Error: tests/neg/i18750.scala:10:6 -------------------------------------------------------------------- |
| 62 | +10 |class do; // error |
| 63 | + | ^^ |
| 64 | + | an identifier expected, but 'do' found |
| 65 | + |-------------------------------------------------------------------------------------------------------------------- |
| 66 | + | Explanation (enabled by `-explain`) |
| 67 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 68 | + | |
| 69 | + | If you want to use 'do' as identifier, you may put it in backticks: `do`. |
| 70 | + -------------------------------------------------------------------------------------------------------------------- |
| 71 | +-- [E040] Syntax Error: tests/neg/i18750.scala:11:7 -------------------------------------------------------------------- |
| 72 | +11 |object if; // error // error |
| 73 | + | ^^ |
| 74 | + | an identifier expected, but 'if' found |
| 75 | + |-------------------------------------------------------------------------------------------------------------------- |
| 76 | + | Explanation (enabled by `-explain`) |
| 77 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 78 | + | |
| 79 | + | If you want to use 'if' as identifier, you may put it in backticks: `if`. |
| 80 | + -------------------------------------------------------------------------------------------------------------------- |
| 81 | +-- [E040] Syntax Error: tests/neg/i18750.scala:12:6 -------------------------------------------------------------------- |
| 82 | +12 |trait else; // error |
| 83 | + | ^^^^ |
| 84 | + | an identifier expected, but 'else' found |
| 85 | + |-------------------------------------------------------------------------------------------------------------------- |
| 86 | + | Explanation (enabled by `-explain`) |
| 87 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 88 | + | |
| 89 | + | If you want to use 'else' as identifier, you may put it in backticks: `else`. |
| 90 | + -------------------------------------------------------------------------------------------------------------------- |
| 91 | +-- [E040] Syntax Error: tests/neg/i18750.scala:13:5 -------------------------------------------------------------------- |
| 92 | +13 |type for; // error |
| 93 | + | ^^^ |
| 94 | + | an identifier expected, but 'for' found |
| 95 | + |-------------------------------------------------------------------------------------------------------------------- |
| 96 | + | Explanation (enabled by `-explain`) |
| 97 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 98 | + | |
| 99 | + | If you want to use 'for' as identifier, you may put it in backticks: `for`. |
| 100 | + -------------------------------------------------------------------------------------------------------------------- |
| 101 | +-- [E161] Naming Error: tests/neg/i18750.scala:11:0 -------------------------------------------------------------------- |
| 102 | +11 |object if; // error // error |
| 103 | + |^ |
| 104 | + |<error> clashes with class <error> in tests/neg/i18750.scala; the two must be defined together |
0 commit comments