diff options
Diffstat (limited to 'tests/run/outerPatternMatch/Test_2.scala')
-rw-r--r-- | tests/run/outerPatternMatch/Test_2.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/run/outerPatternMatch/Test_2.scala b/tests/run/outerPatternMatch/Test_2.scala new file mode 100644 index 000000000..e46f52f20 --- /dev/null +++ b/tests/run/outerPatternMatch/Test_2.scala @@ -0,0 +1,14 @@ +object Test { + + def main(args: Array[String]): Unit = { + val x = new Outer + val y = new Outer + val i = new x.Inner + val j = new y.Inner + i match { + case _: y.Inner => assert(false) + case _: x.Inner => // OK + } + } + +} |