jdk-24/test/langtools/tools/javac/T8203813/WrongReceiverTest.java

12 lines
310 B
Java
Raw Normal View History

/*
* @test /nodynamiccopyright/
* @bug 8203813
* @summary javac accepts an illegal name as a receiver parameter name
* @compile/fail/ref=WrongReceiverTest.out -XDrawDiagnostics WrongReceiverTest.java
*/
public class WrongReceiverTest {
WrongReceiverTest wr;
void f(WrongReceiverTest wr.wr) {}
}