Test case for #2940. No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21163 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
extempore 2010-03-14 06:58:02 +00:00
parent 1b13533d00
commit b5461fff0e
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,3 @@
public interface Cycle<T extends Cycle<?>> {
void doStuff();
}

View File

@ -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 = {
}
}