Skip to content
New issue

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

Misleading AnyVal object error message #18274

Closed
nicolasstucki opened this issue Jul 24, 2023 · 2 comments · Fixed by #18451
Closed

Misleading AnyVal object error message #18274

nicolasstucki opened this issue Jul 24, 2023 · 2 comments · Fixed by #18451
Labels
area:reporting Error reporting including formatting, implicit suggestions, etc better-errors Issues concerned with improving confusing/unhelpful diagnostic messages itype:enhancement Spree Suitable for a future Spree

Comments

@nicolasstucki
Copy link
Contributor

nicolasstucki commented Jul 24, 2023

Compiler version

3.3.1

Minimized code

object Foo extends AnyVal

Output

1 |object Foo extends AnyVal
  |^^^^^^^^^^^^^^^^^^^^^^^^^
  |Foo is already defined as object Foo

Expectation

Better error message

1 |object Foo extends AnyVal
  |^^^^^^^^^^^^^^^^^^^^^^^^^
  |object Foo cannot extend class AnyVal
@nicolasstucki nicolasstucki added itype:enhancement area:reporting Error reporting including formatting, implicit suggestions, etc Spree Suitable for a future Spree labels Jul 24, 2023
@scala-center-bot
Copy link

This issue was picked for the Issue Spree No. 35 of 22 August 2023 which takes place in 7 days. @iusildra, @SimonGuilloud, @sankalpgambhir will be working on it. If you have any insight into the issue or guidance on how to fix it, please leave it here.

@mbovel
Copy link
Member

mbovel commented Aug 22, 2023

In case you guys finish working on this early, you can try to tackle #17969.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:reporting Error reporting including formatting, implicit suggestions, etc better-errors Issues concerned with improving confusing/unhelpful diagnostic messages itype:enhancement Spree Suitable for a future Spree
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants