diff options
Diffstat (limited to 'test/files/pos/t5127.scala')
-rw-r--r-- | test/files/pos/t5127.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/pos/t5127.scala b/test/files/pos/t5127.scala new file mode 100644 index 0000000000..c562025302 --- /dev/null +++ b/test/files/pos/t5127.scala @@ -0,0 +1,8 @@ +package foo { + trait Abstract1[C <: Abstract2[C]] + trait Abstract2[C <: Abstract2[C]] extends Abstract1[C] + class Parametrized1[T] extends Abstract1[Parametrized2[T]] { + def bar(a: AnyRef) { a match { case d: Parametrized1[_] => println("ok") } } + } + class Parametrized2[T] extends Parametrized1[T] with Abstract2[Parametrized2[T]] +} |