jdk
1/*
2* @test /nodynamiccopyright/
3* @bug 8203436
4* @summary javac should fail early when emitting illegal signature attributes
5* @compile/fail/ref=T8203436b.out -XDrawDiagnostics T8203436b.java
6*/
7
8class T8203436b<X> {9interface A { }10interface B { }11
12class Inner { }13
14<Z extends A & B> T8203436b<Z> m() { return null; }15
16void test() {17m().new Inner() { };18}19}
20