[ https://issues.apache.org/jira/browse/GROOVY-7631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14962602#comment-14962602 ]
Shil Sinha commented on GROOVY-7631: ------------------------------------ I tested this on 2.0.0, 2.0.8, 2.1.9, 2.2.2 and 2.3.11; the behavior is the same across those versions. > @CompileStatic compiles 0 != null to false > ------------------------------------------ > > Key: GROOVY-7631 > URL: https://issues.apache.org/jira/browse/GROOVY-7631 > Project: Groovy > Issue Type: Bug > Components: Static compilation > Affects Versions: 2.4.5 > Reporter: Kevin Gu > Assignee: Cédric Champeau > > import groovy.transform.*; > // @CompileStatic > class Bug { > void exec() { > println 0 != null > } > } > new Bug().exec() > The above code prints "true". But when @CompileStatic is umcommented, it > prints "false". -- This message was sent by Atlassian JIRA (v6.3.4#6332)