[ 
https://issues.apache.org/jira/browse/GROOVY-4762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Sun reassigned GROOVY-4762:
----------------------------------

    Assignee: Daniel Sun

> 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
>             Fix For: 4.0
>
>
> 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
(v6.3.4#6332)

Reply via email to