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

fix ImportData.ImportType use of sealed #1211

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nbauernfeind
Copy link
Contributor

The compiler says not all types are covered for this piece of code:

private[this] def onImportData(id: ImportData): Unit = {
  id.importType match {
    case ImportData.Type => onImportDataType(id)
    case ImportData.Term => onImportDataTerm(id)
    case ImportData.TermType =>
      onImportDataType(id)
      onImportDataTerm(id)
  }
}

I believe, that this is just simply from an incorrect usage of Scala's sealed.

@nbauernfeind
Copy link
Contributor Author

@alexarchambault I would be curious what you think of this PR as well =). Thank you in advance!

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

Successfully merging this pull request may close these issues.

2 participants