jdk-24/test/langtools/tools/javac/T8199744/IncorrectMsgQualifiedReceiverTest.java
2018-04-06 09:15:09 -04:00

12 lines
514 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8199744
* @summary Incorrect compiler message for ReceiverParameter in inner class constructor
* @compile/fail/ref=IncorrectMsgQualifiedReceiverTest.out -XDrawDiagnostics IncorrectMsgQualifiedReceiverTest.java
*/
class IncorrectMsgQualifiedReceiverTest {
void foo(int any, IncorrectMsgQualifiedReceiverTest IncorrectMsgQualifiedReceiverTest.this) {}
void bar(int any, IncorrectMsgQualifiedReceiverTest IncorrectMsgQualifiedReceiverTest.this, int another) {}
}