Skip to content

Commit

Permalink
GROOVY-9851
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Dec 5, 2021
1 parent e9cfaf8 commit f35ca2b
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6521,6 +6521,28 @@ public void testInvokingVarargsCtors01_GtoJ() {
runConformTest(sources, "012012");
}

@Test // GROOVY-9851
public void testSuperDotPrivateMethod() {
//@formatter:off
String[] sources = {
"Main.groovy",
"abstract class A {\n" +
" private void m() {\n" +
" print 'works'\n" +
" }\n" +
"}\n" +
"class C extends A {\n" +
" void test() {\n" +
" super.m()\n" + // private method!
" }\n" +
"}\n" +
"new C().test()\n",
};
//@formatter:on

runConformTest(sources, "works");
}

@Test
public void testPositions1() {
//@formatter:off
Expand Down

0 comments on commit f35ca2b

Please sign in to comment.