Skip to content

Commit f35ca2b

Browse files
committed
GROOVY-9851
1 parent e9cfaf8 commit f35ca2b

File tree

1 file changed

+22
-0
lines changed
  • base-test/org.eclipse.jdt.groovy.core.tests.compiler/src/org/eclipse/jdt/groovy/core/tests/basic

1 file changed

+22
-0
lines changed

base-test/org.eclipse.jdt.groovy.core.tests.compiler/src/org/eclipse/jdt/groovy/core/tests/basic/GroovySimpleTests.java

+22
Original file line numberDiff line numberDiff line change
@@ -6521,6 +6521,28 @@ public void testInvokingVarargsCtors01_GtoJ() {
65216521
runConformTest(sources, "012012");
65226522
}
65236523

6524+
@Test // GROOVY-9851
6525+
public void testSuperDotPrivateMethod() {
6526+
//@formatter:off
6527+
String[] sources = {
6528+
"Main.groovy",
6529+
"abstract class A {\n" +
6530+
" private void m() {\n" +
6531+
" print 'works'\n" +
6532+
" }\n" +
6533+
"}\n" +
6534+
"class C extends A {\n" +
6535+
" void test() {\n" +
6536+
" super.m()\n" + // private method!
6537+
" }\n" +
6538+
"}\n" +
6539+
"new C().test()\n",
6540+
};
6541+
//@formatter:on
6542+
6543+
runConformTest(sources, "works");
6544+
}
6545+
65246546
@Test
65256547
public void testPositions1() {
65266548
//@formatter:off

0 commit comments

Comments
 (0)