Skip to content

Unused explicit parameter warning on last member of enum #16878

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
markehammons opened this issue Feb 10, 2023 · 2 comments
Closed

Unused explicit parameter warning on last member of enum #16878

markehammons opened this issue Feb 10, 2023 · 2 comments
Labels
area:linting Linting warnings enabled with -W or -Xlint itype:bug

Comments

@markehammons
Copy link

markehammons commented Feb 10, 2023

Compiler version

3.3.0-RC2

Minimized code

enum A:
  case B
  case C
  case D

https://scastie.scala-lang.org/Amnc44icRuqsIoBP1tgQbg

Output

Unused explicit parameter on case D

@markehammons markehammons added itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label labels Feb 10, 2023
@jchyb jchyb added area:reporting Error reporting including formatting, implicit suggestions, etc area:linting Linting warnings enabled with -W or -Xlint and removed stat:needs triage Every issue needs to have an "area" and "itype" label area:reporting Error reporting including formatting, implicit suggestions, etc labels Feb 10, 2023
@PaulCoral
Copy link
Contributor

@szymon-rd
It seems to be fixed on main. I can't trigger the warning.
Probably by #16927

@szymon-rd
Copy link
Contributor

Confirmed, fixed in nightly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:linting Linting warnings enabled with -W or -Xlint itype:bug
Projects
None yet
Development

No branches or pull requests

4 participants