diff options
author | odersky <odersky@gmail.com> | 2015-10-02 18:46:46 +0200 |
---|---|---|
committer | odersky <odersky@gmail.com> | 2015-10-02 18:46:46 +0200 |
commit | 5f7e2901b0d13d0201874ada72a107820870e274 (patch) | |
tree | d68fd19118be1b45c8eedbe53c77a3b2dc2a135a /tests/pos | |
parent | 3ae9347bca8edbd46aa296570bb2b718a4849665 (diff) | |
parent | 1c131d55bbaed78ee646679e151cb0e792bfa508 (diff) | |
download | dotty-5f7e2901b0d13d0201874ada72a107820870e274.tar.gz dotty-5f7e2901b0d13d0201874ada72a107820870e274.tar.bz2 dotty-5f7e2901b0d13d0201874ada72a107820870e274.zip |
Merge pull request #804 from svalaskevicius/fix-compiling-ScalaRunTime
fix compiling ScalaRunTime.scala
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/Patterns.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pos/Patterns.scala b/tests/pos/Patterns.scala index e9bce87a9..aa369a77b 100644 --- a/tests/pos/Patterns.scala +++ b/tests/pos/Patterns.scala @@ -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 { |