Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.6
-
Fix Version/s: None
-
Component/s: Compiler
-
Labels:None
-
Number of attachments :
Description
This was fixed in 2004 as GROOVY-251, but does not seem to be valid with 1.6:
groovy> x = .75 1 compilation error: unexpected token: . at line: 1, column: 5
If this is expected behaviour, http://groovy.codehaus.org/Groovy+Math is out of date, as the grammar section contains the lines:
DecimalPointLiteral:
Digits . Digits ExponentPart (optional) DecimalTypeSuffix (optional)
. Digits ExponentPart (optional) DecimalTypeSuffix (optional)