From da429e43e903aaa3f575689f6432d71f4b202ba4 Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Tue, 8 May 2012 00:48:37 +0200 Subject: test for SI-5503 --- test/pending/pos/t5503.flags | 1 + test/pending/pos/t5503.scala | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 test/pending/pos/t5503.flags create mode 100644 test/pending/pos/t5503.scala (limited to 'test/pending') diff --git a/test/pending/pos/t5503.flags b/test/pending/pos/t5503.flags new file mode 100644 index 0000000000..e8fb65d50c --- /dev/null +++ b/test/pending/pos/t5503.flags @@ -0,0 +1 @@ +-Xfatal-warnings \ No newline at end of file diff --git a/test/pending/pos/t5503.scala b/test/pending/pos/t5503.scala new file mode 100644 index 0000000000..8a1925df1f --- /dev/null +++ b/test/pending/pos/t5503.scala @@ -0,0 +1,18 @@ +trait A { + type Type + type MethodType <: Type + + val MethodType: MethodTypeExtractor = null + + abstract class MethodTypeExtractor { + def unapply(tpe: MethodType): Option[(Any, Any)] + } +} + +object Test { + val a: A = null + + def foo(tpe: a.Type) = tpe match { + case a.MethodType(_, _) => + } +} \ No newline at end of file -- cgit v1.2.3