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.
1 parent bb3efab commit 1c131d5Copy full SHA for 1c131d5
tests/pos/Patterns.scala
@@ -93,6 +93,15 @@ object Patterns {
93
case t: a2.B =>
94
t
95
}
96
+
97
+ class caseWithPatternVariableHelper1[A]
98
+ class caseWithPatternVariableHelper2[A]
99
100
+ def caseWithPatternVariable(x: Any) = x match {
101
+ case a: caseWithPatternVariableHelper1[_] => ()
102
+ case b: caseWithPatternVariableHelper2[_] => ()
103
+ }
104
105
106
107
object NestedPattern {
0 commit comments