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
3.2.1
//> using scala "3.2.1" import demo.implicits._ import demo._ object Demo {}
[error] ./main.scala:2:8: Not found: demo [error] import demo.implicists._ [error] ^^^^ [error] ./main.scala:3:8: import prefix is not a pure expression [error] import demo._ [error] ^^^^
[error] ./main.scala:2:8: Not found: demo [error] import demo.implicits._ [error] ^^^^ [error] ./main.scala:3:8: Not found: demo [error] import demo._ [error] ^^^^
The "import prefix is not a pure expression" message is confusing here, I believe both messages should just say "demo" is not found.
Additionally, if the second import is correct but the first isn't:
//> using scala "3.2.1" import demo.implicits._ import Predef._ object Demo {}
The output also shows this:
[error] ./main.scala:2:8: Not found: demo [error] import demo.implicists._ [error] ^^^^ [error] ./main.scala:3:8: import prefix is not a pure expression [error] import Predef._ [error] ^^^^^^
The text was updated successfully, but these errors were encountered:
Suppress follow-on errors for erroneous import qualifiers
0681d33
Fixes scala#16653
Suppress follow-on errors for erroneous import qualifiers (#16658)
2127b89
Fixes #16653
476387c
Successfully merging a pull request may close this issue.
Compiler version
3.2.1
Minimized code
Output
Expectation
The "import prefix is not a pure expression" message is confusing here, I believe both messages should just say "demo" is not found.
Additionally, if the second import is correct but the first isn't:
The output also shows this:
The text was updated successfully, but these errors were encountered: