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
sealedtraitTag[A]
enumHidden:caseReveal[A](
init: A,
reduce: (A, A) =>A
) extendsHiddenwithTag[A]
traitHandle[C]:defapply[A](c: C&Tag[A]):Avalx=newHandle[Hidden] {
defapply[A](c: Hidden&Tag[A]):A= c match {
caseHidden.Reveal(x, _) => x
}
}
Output
[warn] -- [E029] PatternMatchExhaustivityWarning:/home/<redacted>:51:42
[warn] 51|defapply[A](c: Hidden&Tag[A]):A= c match {
[warn] |^
[warn] |match may not be exhaustive.
[warn] |
[warn] |It would fail on pattern case:Hidden.Reveal(_, _)
Expectation
No warning is emitted by compiler.
The text was updated successfully, but these errors were encountered:
Compiler version
3.2.1
Minimized code
Output
Expectation
No warning is emitted by compiler.
The text was updated successfully, but these errors were encountered: