Permalink
Browse files

test for SI-5503

  • Loading branch information...
xeno-by committed May 7, 2012
1 parent 7cac633 commit da429e43e903aaa3f575689f6432d71f4b202ba4
Showing with 19 additions and 0 deletions.
  1. +1 −0 test/pending/pos/t5503.flags
  2. +18 −0 test/pending/pos/t5503.scala
@@ -0,0 +1 @@
-Xfatal-warnings
@@ -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(_, _) =>
}
}

0 comments on commit da429e4

Please sign in to comment.