[ https://issues.apache.org/jira/browse/GROOVY-4762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-4762. ----------------------------- > Numbers as properties in command expressions > -------------------------------------------- > > Key: GROOVY-4762 > URL: https://issues.apache.org/jira/browse/GROOVY-4762 > Project: Groovy > Issue Type: Bug > Components: parser > Affects Versions: 1.8-rc-3 > Reporter: Maxim Medvedev > Assignee: Daniel Sun > Priority: Major > Fix For: 2.6.0-alpha-1 > > > It is allowed not to surround numbers with quotes in command expressions if > they are used as properties. > Is it bug or feature? > > {code} > def get123() {2} > def foo(i) {this} > def a = foo(2).'123' > def b = foo 2 123 > println a > println b > {code} > But if you rename get123() to get123a() the line will throw an exception. > {code} > def b = foo 2 123a > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)