Skip to content

Commit 6187e12

Browse files
committed
GROOVY-9825
1 parent 31c63d2 commit 6187e12

File tree

5 files changed

+1222
-1
lines changed

5 files changed

+1222
-1
lines changed

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

+26-1
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ public void testLambdaScope2() {
425425
}
426426

427427
@Test
428-
public void testModuleInfo1() {
428+
public void testModuleInfo() {
429429
assumeTrue(isAtLeastJava(JDK9));
430430

431431
//@formatter:off
@@ -744,6 +744,31 @@ public void testStaticProperty9() {
744744
runConformTest(sources, "foo");
745745
}
746746

747+
@Test // GROOVY-9825
748+
public void testStaticProperty10() {
749+
//@formatter:off
750+
String[] sources = {
751+
"Main.groovy",
752+
"interface A {\n" +
753+
" int X = 1\n" +
754+
"}\n" +
755+
"interface B extends A {\n" +
756+
" int Y = 2\n" +
757+
"}\n" +
758+
"class Main {\n" +
759+
" static class C implements B {\n" +
760+
" int getSum() { X + Y }\n" +
761+
" }\n" +
762+
" static main(args) {\n" +
763+
" print new C().sum\n" +
764+
" }\n" +
765+
"}\n",
766+
};
767+
//@formatter:on
768+
769+
runConformTest(sources, "3");
770+
}
771+
747772
@Test
748773
public void testClash_GRE1076() {
749774
//@formatter:off

base/org.codehaus.groovy25/.checkstyle

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
<file-match-pattern match-pattern="groovy/classgen/EnumVisitor.java" include-pattern="false" />
4343
<file-match-pattern match-pattern="groovy/classgen/ExtendedVerifier.java" include-pattern="false" />
4444
<file-match-pattern match-pattern="groovy/classgen/InnerClassVisitorHelper.java" include-pattern="false" />
45+
<file-match-pattern match-pattern="groovy/classgen/VariableScopeVisitor.java" include-pattern="false" />
4546
<file-match-pattern match-pattern="groovy/classgen/Verifier.java" include-pattern="false" />
4647
<file-match-pattern match-pattern="groovy/classgen/asm/BinaryExpressionHelper.java" include-pattern="false" />
4748
<file-match-pattern match-pattern="groovy/classgen/asm/BytecodeHelper.java" include-pattern="false" />

0 commit comments

Comments
 (0)