Skip to content

Error message doesn't disambiguate names enough #4184

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

Closed
Blaisorblade opened this issue Mar 26, 2018 · 0 comments
Closed

Error message doesn't disambiguate names enough #4184

Blaisorblade opened this issue Mar 26, 2018 · 0 comments
Labels
area:reporting Error reporting including formatting, implicit suggestions, etc itype:enhancement

Comments

@Blaisorblade
Copy link
Contributor

In #4180, note that the error message is very misleading; even after this comparison is allowed, I'd expect this issue to apply to other examples:

object Bar {
  true == (true: java.lang.Boolean)
}

gives

-- Error: /tmp/scastie843852333271942738/src/main/scala/main.scala:3:2 ---------
3 |  true == (true: java.lang.Boolean)
  |  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |  Values of types Boolean and Boolean cannot be compared with == or !=
@Blaisorblade Blaisorblade added itype:enhancement area:reporting Error reporting including formatting, implicit suggestions, etc labels Mar 26, 2018
nicolasstucki added a commit to dotty-staging/dotty that referenced this issue Jan 21, 2019
Blaisorblade added a commit that referenced this issue Jan 21, 2019
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 itype:enhancement
Projects
None yet
Development

No branches or pull requests

1 participant