diff options
Diffstat (limited to 'tests/untried/neg/abstract-report2.scala')
-rw-r--r-- | tests/untried/neg/abstract-report2.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/untried/neg/abstract-report2.scala b/tests/untried/neg/abstract-report2.scala new file mode 100644 index 000000000..3262fee7f --- /dev/null +++ b/tests/untried/neg/abstract-report2.scala @@ -0,0 +1,15 @@ +import java.util.Collection + +class Foo extends Collection[Int] + +class Bar extends Collection[List[_ <: String]] + +class Baz[T] extends Collection[T] + +trait Xyz[T] { + def foo(x: T): Boolean +} + +trait Bippy[T1, T2, T3] extends Collection[T1] with TraversableOnce[(T2, String)] with Xyz[T3] + +class Dingus extends Bippy[String, Set[Int], List[Int]] |