Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
2.4.4
-
None
-
None
Description
I have a class that implements asBoolean:
class Foo { /** * @return whether any properties are <tt>true</tt> */ boolean asBoolean() { foo || bar || keks || blorb } }
When using this class in a class that has @CompileStatic applied to it, the asBoolean method is not called in a ternary expression.
May be related to GROOVY-6802.