We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
class A class B class C object Test { def bar(x: A) = x match { case x: (B | C) => x // no warning? case _ => } }
No warnings
The compiler should produce a warning, as the test is always false.