Community
Participate
Working Groups
Expect both variations to work. program driver type BasicProgram {} function main() trs TestRec[]? = new TestRec[ 1 ]; trs[1]{ s = "a value for field s" }; assertTest(trs[1].s); tr TestRec; tr{ s = "a value for field s" }; assertTest(tr.s); end function assertTest(incoming string in) hardcoded string = "a value for field s"; if (incoming == hardcoded) syslib.writeStdout("Works"); else syslib.writeStdout("Fails:" + incoming + "."); end end end record TestRec s string; end Found in eunit test lang.expression.initializer.ObjectInitialization001
fixed
Verified with 201110210902 & closed