[ https://issues.apache.org/jira/browse/GROOVY-5185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14597209#comment-14597209 ]
ASF GitHub Bot commented on GROOVY-5185: ---------------------------------------- Github user paulk-asert closed the pull request at: https://github.com/apache/incubator-groovy/pull/42 > Cast operator precedence is incorrect > ------------------------------------- > > Key: GROOVY-5185 > URL: https://issues.apache.org/jira/browse/GROOVY-5185 > Project: Groovy > Issue Type: Sub-task > Components: groovy-runtime > Affects Versions: 1.8.4 > Reporter: Cédric Champeau > Assignee: Paul King > > The cast operator precedence is incorrect: > {code} > def i = (int)1/(int)2 > assert i.class==BigDecimal // fails > {code} > To have proper casts, we need extra parenthesis which should not be necessary: > {code} > def i = ((int)1)/((int)2) > assert i.class==BigDecimal // ok > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)