Re: non-exhaustive match warning for abstract type
Bardur Arantsson <[email protected]>
| Newsgroups | gmane.comp.lang.scala |
|---|---|
| Message-ID | <[email protected]> |
On 2015-02-08 02:07, Jim Newsham wrote:
>
> I see. That's rather peculiar to me. I thought the whole point of sealed
> was to prevent subclasses outside of the single source file, in which case
> "new Abs() { }" seems to violate that.
I think the point here is that the "new Abs() { }" bit *could* be in the
same file as the definition of the sealed trait.
Regards,
--
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.