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:
parent
1b13533d00
commit
b5461fff0e
|
@ -0,0 +1,3 @@
|
|||
public interface Cycle<T extends Cycle<?>> {
|
||||
void doStuff();
|
||||
}
|
|
@ -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 = {
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue