Community
Participate
Working Groups
This method declaration function calledReturning(outgoing string const out) results in this validation error IWN.VAL.4958.e 44/30 The const modifier is not allowed to be specified with the out modifier. However this doesn't give me any validation error function called(incoming string const inout) Seems like a valid restriction to added since it is along the line of these two languages changes: Literals are no longer allowed to be passed to INOUT function parms. Constants are no longer allowed to be passed to INOUT function parameters. Otherwise, both generators have issues.
Created attachment 206840 [details] eunit library
Paul, I was wrong. Both generators are OK with CONST INOUT parameter specification. The issue I see is with +=. I tried this code in RBD and got this validation message: IWN.VAL.6646.e 28/6 driver - Invalid attempt to modify incoming which is a constant. Constants are not allowed to be modified. EDT doesn't give me an error. function testForPaul(){@Test} outgoing string = "before"; called(outgoing); LogResult.assertStringEqual1("before", outgoing); end function called(incoming string const inout) action string = incoming + " more stuff"; incoming += " after"; end
I have fixed the validation so that it will now give an error when using the += assignment with Const strings. Change was made to AssignmentStatementValidator
verified 20111115_2101 and closed