Community
Participate
Working Groups
From the FVT testcases: function testMatch(e Event in) type1 Del1 = foo; type2 Del2 = foo2; type3 Del2 = foo2; variation = "Compare type1 == foo"; TestUILib.reportStatus(jsLib.getFile(), jsLib.getLine(), compareBoolean((type1 == foo),true) ); variation = "Compare type1 != foo"; TestUILib.reportStatus(jsLib.getFile(), jsLib.getLine(), compareBoolean((type1 != foo),false) ); variation = "Compare type2 == foo2"; TestUILib.reportStatus(jsLib.getFile(), jsLib.getLine(), compareBoolean((type2 == foo2),true) ); variation = "Compare type2 == foo3"; TestUILib.reportStatus(jsLib.getFile(), jsLib.getLine(), compareBoolean((type2 == foo3),false) ); variation = "Compare type2 != foo3"; TestUILib.reportStatus(jsLib.getFile(), jsLib.getLine(), compareBoolean((type2 != foo3),true) ); variation = "Compare foo3 == foo3"; TestUILib.reportStatus(jsLib.getFile(), jsLib.getLine(), compareBoolean((foo3 == foo3),true) ); variation = "Compare type2(foo2) == type3(foo2)"; TestUILib.reportStatus(jsLib.getFile(), jsLib.getLine(), compareBoolean((type2 == type3),true) ); type3 = foo3; variation = "Compare type2(foo2) == type3(foo3)"; TestUILib.reportStatus(jsLib.getFile(), jsLib.getLine(), compareBoolean((type2 != type3),true) ); end
This is working in the mof model now. However, after simplifying the testcase to: delegate del1() end delegate del2() end library lib3 bool boolean; function foo() end function testMatch(e Event in) type1 Del1 = foo; bool = type1 == foo; bool = type1 != foo; end end I get compile errors in the generated Java. I am routing this to JavaGen to look at this.
Additionally, please route this to JSGen when the java is working correctly. I ran the following test in JS and the output is: false true I expect the output to be true false delegate del1() end handler Hand2 type RUIhandler{initialUI =[ui ], onConstructionFunction = start, cssFile = "css/proj1.css", title = "Hand2"} ui GridLayout{columns = 3, rows = 4, cellPadding = 4, children =[]}; function foo() end function start() type1 Del1 = foo; SysLib.writeStdout(type1 == foo); SysLib.writeStdout(type1 != foo); end end
I've fixed this, however Paul needs to fix the compiler problem for "foo == foo" Sending this over to JSGen as requested
Fixed JSGen part. Thanks.
working great now