Skip to content

Commit

Permalink
GROOVY-9825
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Nov 23, 2020
1 parent 31c63d2 commit 6187e12
Show file tree
Hide file tree
Showing 5 changed files with 1,222 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ public void testLambdaScope2() {
}

@Test
public void testModuleInfo1() {
public void testModuleInfo() {
assumeTrue(isAtLeastJava(JDK9));

//@formatter:off
Expand Down Expand Up @@ -744,6 +744,31 @@ public void testStaticProperty9() {
runConformTest(sources, "foo");
}

@Test // GROOVY-9825
public void testStaticProperty10() {
//@formatter:off
String[] sources = {
"Main.groovy",
"interface A {\n" +
" int X = 1\n" +
"}\n" +
"interface B extends A {\n" +
" int Y = 2\n" +
"}\n" +
"class Main {\n" +
" static class C implements B {\n" +
" int getSum() { X + Y }\n" +
" }\n" +
" static main(args) {\n" +
" print new C().sum\n" +
" }\n" +
"}\n",
};
//@formatter:on

runConformTest(sources, "3");
}

@Test
public void testClash_GRE1076() {
//@formatter:off
Expand Down
1 change: 1 addition & 0 deletions base/org.codehaus.groovy25/.checkstyle
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<file-match-pattern match-pattern="groovy/classgen/EnumVisitor.java" include-pattern="false" />
<file-match-pattern match-pattern="groovy/classgen/ExtendedVerifier.java" include-pattern="false" />
<file-match-pattern match-pattern="groovy/classgen/InnerClassVisitorHelper.java" include-pattern="false" />
<file-match-pattern match-pattern="groovy/classgen/VariableScopeVisitor.java" include-pattern="false" />
<file-match-pattern match-pattern="groovy/classgen/Verifier.java" include-pattern="false" />
<file-match-pattern match-pattern="groovy/classgen/asm/BinaryExpressionHelper.java" include-pattern="false" />
<file-match-pattern match-pattern="groovy/classgen/asm/BytecodeHelper.java" include-pattern="false" />
Expand Down
Loading

0 comments on commit 6187e12

Please sign in to comment.