diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-05-08 00:48:37 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-05-08 00:48:37 +0200 |
commit | da429e43e903aaa3f575689f6432d71f4b202ba4 (patch) | |
tree | 51e3f9981a30aca8d6c9b0787765f6037a689ff3 | |
parent | 7cac6334d4437ff54c4979799574045501f64135 (diff) | |
download | scala-da429e43e903aaa3f575689f6432d71f4b202ba4.tar.gz scala-da429e43e903aaa3f575689f6432d71f4b202ba4.tar.bz2 scala-da429e43e903aaa3f575689f6432d71f4b202ba4.zip |
test for SI-5503
-rw-r--r-- | test/pending/pos/t5503.flags | 1 | ||||
-rw-r--r-- | test/pending/pos/t5503.scala | 18 |
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 |