Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0
-
None
-
None
Description
foo.&"$bar" doesn't work as expected
We should be able to define method closures with gstring identifiers.
groovy> class MCTest {
groovy> void testMethod1()
groovy> void testMethod2()
{ println "m2" }groovy> }
groovy> mctest = new MCTest()
groovy> m = mctest.class.methods.name.grep(~/^test.*$/).collect
groovy> m.each
{ it() }groovy> go
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, CommandLine.groovy:
6: Unexpected node type: DYNAMIC_MEMBER found when expecting type: an identifier at line: 6 column:
67. File: CommandLine.groovy @ line 6, column 67.
1 error