summaryrefslogtreecommitdiff
path: root/test/pending
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-05-08 00:48:37 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-05-08 00:48:37 +0200
commitda429e43e903aaa3f575689f6432d71f4b202ba4 (patch)
tree51e3f9981a30aca8d6c9b0787765f6037a689ff3 /test/pending
parent7cac6334d4437ff54c4979799574045501f64135 (diff)
downloadscala-da429e43e903aaa3f575689f6432d71f4b202ba4.tar.gz
scala-da429e43e903aaa3f575689f6432d71f4b202ba4.tar.bz2
scala-da429e43e903aaa3f575689f6432d71f4b202ba4.zip
test for SI-5503
Diffstat (limited to 'test/pending')
-rw-r--r--test/pending/pos/t5503.flags1
-rw-r--r--test/pending/pos/t5503.scala18
2 files changed, 19 insertions, 0 deletions
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