Re: non-exhaustive match warning for abstract type
Simon Ochsenreither <[email protected]>
| Newsgroups | gmane.comp.lang.scala |
|---|---|
| Message-ID | <[email protected]> |
No, the warning is right.
It fails for subclasses of A:
val value: A = new A {}
warning: match may not be exhaustive.
It would fail on the following inputs: $anon$1(), Abs()
scala.MatchError: $anon$1@387c703b (of class $anon$1)
... 39 elided
--
You received this message because you are subscribed to the Google Groups "scala-language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.