Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.5.6
-
None
-
None
Description
while this works:
groovy> long d = 100L
groovy> d = d / 33L
groovy> d.class
Result: class java.lang.Long
the following breaks the type system and produces a Long that is a BigDecimal!
groovy> long d = 100L
groovy> d /= 33L
groovy> d.class
Result: class java.math.BigDecimal
Attachments
Issue Links
- relates to
-
GROOVY-2665 static typing issue: adding a string to an Integer
- Closed