diff options
-rw-r--r-- | test/files/pos/t2940/Cycle.java | 3 | ||||
-rw-r--r-- | test/files/pos/t2940/Error.scala | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/files/pos/t2940/Cycle.java b/test/files/pos/t2940/Cycle.java new file mode 100644 index 0000000000..eef6c23b5e --- /dev/null +++ b/test/files/pos/t2940/Cycle.java @@ -0,0 +1,3 @@ +public interface Cycle<T extends Cycle<?>> { + void doStuff(); +}
\ No newline at end of file diff --git a/test/files/pos/t2940/Error.scala b/test/files/pos/t2940/Error.scala new file mode 100644 index 0000000000..bf5a6bd0df --- /dev/null +++ b/test/files/pos/t2940/Error.scala @@ -0,0 +1,12 @@ +abstract class Error { + val c: Cycle[_] +} + +object Test { + trait Quux[T] extends Cycle[Quux[T]] + val x = new Quux[Int] { def doStuff() { } } + + def main(args: Array[String]): Unit = { + + } +} |