Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8-rc-3
-
None
Description
It is allowed not to surround numbers with quotes in command expressions if they are used as properties.
Is it bug or feature?
def get123() {2} def foo(i) {this} def a = foo(2).'123' def b = foo 2 123 println a println b
But if you rename get123() to get123a() the line will throw an exception.
def b = foo 2 123a