Skip to content

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