From d68c106cc7fc23a5d7c2a25868278e6394601e5d Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Mon, 29 Sep 2014 13:38:12 +0200 Subject: Enable outer tests in pattern matcher. And a test for this. --- tests/pos/Patterns.scala | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/pos/Patterns.scala') diff --git a/tests/pos/Patterns.scala b/tests/pos/Patterns.scala index 9a3811b3b..6df400f38 100644 --- a/tests/pos/Patterns.scala +++ b/tests/pos/Patterns.scala @@ -77,4 +77,16 @@ object Patterns { } case _ => ys.isEmpty } + + class A{ + class B + } + val a1 = new A + val a2 = new A + d match { + case t: a1.B => + t + case t: a2.B => + t + } } -- cgit v1.2.3