summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-03-14 06:58:02 +0000
committerPaul Phillips <paulp@improving.org>2010-03-14 06:58:02 +0000
commit605b7c5aeb1b513f1cc9d55819c39412443d0dfa (patch)
tree4387335a6ea8b4c3cfab80b5e7fa021a85d9b45f /test/files/pos
parent860f2bbe8529886a2f2d15eaa35bb5ded7cd4955 (diff)
downloadscala-605b7c5aeb1b513f1cc9d55819c39412443d0dfa.tar.gz
scala-605b7c5aeb1b513f1cc9d55819c39412443d0dfa.tar.bz2
scala-605b7c5aeb1b513f1cc9d55819c39412443d0dfa.zip
Test case for #2940. No review.
Diffstat (limited to 'test/files/pos')
-rw-r--r--test/files/pos/t2940/Cycle.java3
-rw-r--r--test/files/pos/t2940/Error.scala12
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 = {
+
+ }
+}