Skip to content

Commit

Permalink
add a test for a pattern match with ignored type param
Browse files Browse the repository at this point in the history
  • Loading branch information
svalaskevicius committed Sep 25, 2015
1 parent bb3efab commit 1c131d5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/pos/Patterns.scala
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ object Patterns {
case t: a2.B =>
t
}

class caseWithPatternVariableHelper1[A]
class caseWithPatternVariableHelper2[A]

def caseWithPatternVariable(x: Any) = x match {
case a: caseWithPatternVariableHelper1[_] => ()
case b: caseWithPatternVariableHelper2[_] => ()
}

}

object NestedPattern {
Expand Down

0 comments on commit 1c131d5

Please sign in to comment.