diff options
Diffstat (limited to 'test/files/pos/t2940/Error.scala')
-rw-r--r-- | test/files/pos/t2940/Error.scala | 12 |
1 files changed, 12 insertions, 0 deletions
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 = { + + } +} |