Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.4
Description
The cast operator precedence is incorrect:
def i = (int)1/(int)2 assert i.class==BigDecimal // fails
To have proper casts, we need extra parenthesis which should not be necessary:
def i = ((int)1)/((int)2) assert i.class==BigDecimal // ok