You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--Error: tests/pos/HelloWorld.scala:9:16--------------------------------------9| `i'` +=1|^| end of statement expected but integer literal found
-- [E040] SyntaxError: tests/pos/HelloWorld.scala:10:6------------------------10| }
|^|';' expected, but '}' found
-- [E008] NotFoundError: tests/pos/HelloWorld.scala:8:12---------------------8| acc += (i * `i'`)
|^^^^^^| value += is not a member of Int- did you mean Int.!=?-- [E008] NotFoundError: tests/pos/HelloWorld.scala:9:8----------------------8| acc += (i * `i'`)
9| `i'` +=1|^| value i' is not a member of Int.|Note that `i'` is treated asan infix operator in Scala3.
|If you do not want that, insert a `;` or empty line in front
| or drop any spaces behind the operator.
-- [E006] NotFoundError: tests/pos/HelloWorld.scala:9:13---------------------9| `i'` +=1|^^|Notfound: +=
longer explanation available when compiling with`-explain`5 errors found
Expectation
Should compile and print hello world: 18
Workaround
Replace lines like:
`i'` +=1
to
`i'` = `i'` +1
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Compiler version
I can reproduce it on:
3.0.0-M3-bin-20201213-e8d748e-NIGHTLY
and3.0.0-RC1-bin-20210122-6947b0f-NIGHTLY
Minimized code
Output
Expectation
Should compile and print
hello world: 18
Workaround
Replace lines like:
to
The text was updated successfully, but these errors were encountered: