1 /*
 2  * @test /nodynamiccopyright/
 3  * @bug 8222790
 4  * @summary javac diagnostics don't discriminate between inline types and there nullable projection types.
 5  *
 6  * @compile/fail/ref=CheckQuestionInMessages.out -XDrawDiagnostics CheckQuestionInMessages.java
 7  */
 8 
 9 import java.util.List;
10 
11 primitive class X.val {
12     List<X.ref> ls = new Object() {};
13     X.ref[] xa = new Object[10];  // no support for Object.ref yet, but they are the same.
14 }