blob: fa591ecbc37e6954de05e6343c456139484d2711 [file] [log] [blame]
/*
* @test /nodynamiccopyright/
* @bug 8145987
* @summary Assertion failure when compiling stream with type annotation
* @compile/fail/ref=AnnotatedMethodSelectorTest2.out -XDrawDiagnostics AnnotatedMethodSelectorTest2.java
*/
class AnnotatedMethodSelectorTest2<T> {
@interface A {}
class Inner {}
static public void main(String... args) {
new AnnotatedMethodSelectorTest2<@A String>() {
java.util.@A List l;
}.hashCode();
}
}