1 /*
   2  * @test /nodynamiccopyright/
   3  * @summary check that record is not used as a type name
   4  * @compile/fail/ref=UnexpectedKindRecordTest.out -XDrawDiagnostics UnexpectedKindRecordTest.java
   5  */
   6 
   7 class UnexpectedKindRecordTest {
   8 
   9     record R(int i) {
  10         public int i() { return i; }
  11         public int i() { return i; }
  12     }
  13 }