You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sealedtraitDecoratedenumFoo:caseAcaseBextendsFoowithDecorateddefdecoratedFoo(a: Foo):Option[Decorated] =Some(a).collect { casea: Decorated=> a }
Output
1 warning found
-- [E030] MatchcaseUnreachableWarning:--------------------------------------1|defdecoratedFoo(a: Foo):Option[Decorated] =Some(a).collect { casea: Decorated=> a }
|^^^^^^^^^^^^|Unreachablecase
Expectation
I would think that the space analysis can realize that children of one sealed class can intersect with children of an otherwise "unrelated" sealed trait