Authors: russell@unturf.com · brackishbert@gmail.com · foxhop.net · TimeHexOn.com Patches, unit tests, benchmarks, whitepaper, and outreach briefs. Public domain — no copyright claimed. Use freely.
11 lines
310 B
Java
11 lines
310 B
Java
/*
|
|
* @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) {}
|
|
}
|