You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2017/01/20 02:38:54 UTC
groovy git commit: Add test case for GROOVY-4762: Numbers as
properties in command expressions
Repository: groovy
Updated Branches:
refs/heads/parrot ad1786eb2 -> c9fbf957a
Add test case for GROOVY-4762: Numbers as properties in command expressions
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/c9fbf957
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/c9fbf957
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/c9fbf957
Branch: refs/heads/parrot
Commit: c9fbf957ae149f6f62fd2125180270f2b4eb3fa8
Parents: ad1786e
Author: sunlan <su...@apache.org>
Authored: Fri Jan 20 10:38:46 2017 +0800
Committer: sunlan <su...@apache.org>
Committed: Fri Jan 20 10:38:46 2017 +0800
----------------------------------------------------------------------
.../org/apache/groovy/parser/antlr4/GroovyParserTest.groovy | 2 +-
.../src/test/resources/bugs/BUG-GROOVY-4762.groovy | 9 +++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/c9fbf957/subprojects/groovy-parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy
----------------------------------------------------------------------
diff --git a/subprojects/groovy-parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy b/subprojects/groovy-parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy
index d48e2e0..003a34b 100644
--- a/subprojects/groovy-parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy
+++ b/subprojects/groovy-parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy
@@ -330,7 +330,7 @@ class GroovyParserTest extends GroovyTestCase {
doRunAndTest('bugs/BUG-GROOVY-4757.groovy');
doRunAndTest('bugs/GROOVY-3898.groovy');
doRunAndTest('bugs/BUG-GROOVY-5652.groovy');
-
+ doRunAndTest('bugs/BUG-GROOVY-4762.groovy');
}
}
http://git-wip-us.apache.org/repos/asf/groovy/blob/c9fbf957/subprojects/groovy-parser-antlr4/src/test/resources/bugs/BUG-GROOVY-4762.groovy
----------------------------------------------------------------------
diff --git a/subprojects/groovy-parser-antlr4/src/test/resources/bugs/BUG-GROOVY-4762.groovy b/subprojects/groovy-parser-antlr4/src/test/resources/bugs/BUG-GROOVY-4762.groovy
new file mode 100644
index 0000000..54e71f2
--- /dev/null
+++ b/subprojects/groovy-parser-antlr4/src/test/resources/bugs/BUG-GROOVY-4762.groovy
@@ -0,0 +1,9 @@
+package bugs
+
+def get123() {2}
+def foo(i) {this}
+
+def a = foo(2).'123'
+def b = foo 2 123
+
+assert a == b
\ No newline at end of file