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
sealedtraitParentfinalcaseclassLeaf[A, B>:A](a: A, b: B) extendsParentdefrun(x: Parent):Unit= x match {
caseLeaf(a, b) =>
}
Leads to the following spurious warning:
-- [E029] PatternMatchExhaustivityWarning:6|defrun(x: Parent):Unit= x match {
|^|match may not be exhaustive.
||It would fail on pattern case:Leaf(_, _)
|| longer explanation available when compiling with`-explain`1 warning found
I suspect the issue to be different from #15522, since it is present on both main and 3.1.2.