Details
Description
I think the attached script should pass. Specifically this line:
X = [Y, Z]
should go through setProperty("X", [null, null]) but instead it comes in as setProperty("X", true)
I am using this feature for a DSL to define the rules for a binary decision tree.
Added to the compiler because of this email on the list:
http://tinyurl.com/cfuyah
In a slightly smaller version, the issue is reproducible in the code below too:
class Rule { Boolean X,Y,Z def rules = { X = [Y, Z] } void setProperty(String n, v) { println "n = $n, v = $v" // prints n = X, v = true } } new Rule().rules()