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

feature request: add support for actionable diagnostics #1074

Open
ghostbuster91 opened this issue Mar 24, 2024 · 0 comments
Open

feature request: add support for actionable diagnostics #1074

ghostbuster91 opened this issue Mar 24, 2024 · 0 comments

Comments

@ghostbuster91
Copy link

ghostbuster91 commented Mar 24, 2024

For example following code:

enum Animal {
  case Cat(name: String)
  case Dog(name: String)
}

object Main {
  def foo(a: Animal) = {
    a match
      case Animal.Cat(name) => println(name)

  }
}

correctly reports diagnostic that a pattern match is not exhaustive, however there should also be an actionable item attached to the diagnostic provided by the compiler to fix missing cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant