We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import scala.concurrent._ @main def main(): Unit = def test = () test
[error] -- [E018] Syntax Error: /Users/meriamlachkar/perso/dotty/src/main/scala/Show.scala:3:24 [error] 3 |@main def main(): Unit = [error] | ^ [error] | expression expected but def found [error] -- [E080] Syntax Error: /Users/meriamlachkar/perso/dotty/src/main/scala/Show.scala:5:2 [error] 5 | test [error] | ^^^^ [error] | Expected a toplevel definition [warn] -- [E129] Potential Issue Warning: /Users/meriamlachkar/perso/dotty/src/main/scala/Show.scala:3:22 [warn] 3 |@main def main(): Unit = [warn] | ^ [warn] |A pure expression does nothing in statement position; you may be omitting necessary parentheses [warn] one warning found [error] two errors found [error] (Compile / compileIncremental) Compilation failed
Fixing the import indentation fixes this error. From reading the error message, it's not clear what causes the error.
The text was updated successfully, but these errors were encountered:
Similar to #9515 where the error does not indicate where indentation was established.
Sorry, something went wrong.
2215ff8
Merge pull request #10328 from dotty-staging/fix-#9992
df27dcd
Fix #9992: Reset toplevel indent region width on left indent
odersky
No branches or pull requests
Minimized code
Output
Expectation
Fixing the import indentation fixes this error.
From reading the error message, it's not clear what causes the error.
The text was updated successfully, but these errors were encountered: