groovy git commit: Refine the test for property and field with same name

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

groovy git commit: Refine the test for property and field with same name

sunlan
Repository: groovy
Updated Branches:
  refs/heads/master ad9e1e529 -> 44782e057


Refine the test for property and field with same name


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/44782e05
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/44782e05
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/44782e05

Branch: refs/heads/master
Commit: 44782e057b6534bb824bb4ebc9830972e7cf7f08
Parents: ad9e1e5
Author: sunlan <[hidden email]>
Authored: Sat Jul 15 07:36:08 2017 +0800
Committer: sunlan <[hidden email]>
Committed: Sat Jul 15 07:36:32 2017 +0800

----------------------------------------------------------------------
 .../src/test/resources/core/FieldDeclaration_01x.groovy           | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/44782e05/subprojects/parser-antlr4/src/test/resources/core/FieldDeclaration_01x.groovy
----------------------------------------------------------------------
diff --git a/subprojects/parser-antlr4/src/test/resources/core/FieldDeclaration_01x.groovy b/subprojects/parser-antlr4/src/test/resources/core/FieldDeclaration_01x.groovy
index 4a83e9f..7f8c89c 100644
--- a/subprojects/parser-antlr4/src/test/resources/core/FieldDeclaration_01x.groovy
+++ b/subprojects/parser-antlr4/src/test/resources/core/FieldDeclaration_01x.groovy
@@ -26,9 +26,10 @@ class FieldHolder extends Base {
     private num = 1
 }
 
-class FieldHolder2 extends FieldHolder {
+class FieldHolder2 extends Base {
     private num = 2
     def num
 }
 
+assert 1 == new FieldHolder().num
 assert 2 == new FieldHolder2().num

Loading...