Skip to content

Misleading error message for opaque type #15266

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
nicolasstucki opened this issue May 23, 2022 · 0 comments · Fixed by #15285
Closed

Misleading error message for opaque type #15266

nicolasstucki opened this issue May 23, 2022 · 0 comments · Fixed by #15285
Labels
area:reporting Error reporting including formatting, implicit suggestions, etc Spree Suitable for a future Spree
Milestone

Comments

@nicolasstucki
Copy link
Contributor

Compiler version

3.1.2

Minimized example

opaque type Type

Output

[error] Modifier opaque is not allowed for this definition
[error] opaque type Type
[error] ^^^^^^^^^^^^^^^^

Expectation

Should state that an opaque type needs a right-hand side

@nicolasstucki nicolasstucki added area:reporting Error reporting including formatting, implicit suggestions, etc Spree Suitable for a future Spree labels May 23, 2022
nicolasstucki added a commit to dotty-staging/dotty that referenced this issue May 24, 2022
bishabosha pushed a commit to dotty-staging/dotty that referenced this issue Oct 18, 2022
@Kordyjan Kordyjan added this to the 3.2.0 milestone Aug 1, 2023
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 Spree Suitable for a future Spree
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants