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/GROOVY_2_6_X 20dc2db05 -> 7241fe26c


Refine the test for property and field with same name

(cherry picked from commit 44782e0)


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

Branch: refs/heads/GROOVY_2_6_X
Commit: 7241fe26c88e0b7485974a9a28441e42ff65820c
Parents: 20dc2db
Author: sunlan <[hidden email]>
Authored: Sat Jul 15 07:36:08 2017 +0800
Committer: sunlan <[hidden email]>
Committed: Sat Jul 15 07:37:38 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/7241fe26/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...