From 605b7c5aeb1b513f1cc9d55819c39412443d0dfa Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sun, 14 Mar 2010 06:58:02 +0000 Subject: Test case for #2940. No review. --- test/files/pos/t2940/Cycle.java | 3 +++ test/files/pos/t2940/Error.scala | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 test/files/pos/t2940/Cycle.java create mode 100644 test/files/pos/t2940/Error.scala (limited to 'test') 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> { + 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 = { + + } +} -- cgit v1.2.3