jdk-24/test/langtools/tools/javac/generics/6207386/T6207386.java
2017-09-12 19:03:39 +02:00

17 lines
367 B
Java

/*
* @test /nodynamiccopyright/
* @bug 6207386
* @summary Undecidable type system leads to crash
* @author Martin Odersky
* @compile/fail/ref=T6207386.out -XDrawDiagnostics T6207386.java
*/
public class T6207386 {
static class F<T> {}
static class C<X extends F<F<? super X>>> {
C(X x) {
F<? super X> f = x;
}
}
}