You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#1379 has resulted in a regression when evaluating ELSIF conditions if said condition contains a call to a function with aggregate return types. Due to the way the AST is lowered, these calls will now always be evaluated even if any of the previous conditional blocks already evaluated as TRUE, possibly leading to side-effects.
A possible solution to this is further lowering IF conditional blocks and nesting each ELSIF statement in a separate IF THEN ELSE statement within the previous conditions ELSE block, i.e.
IF condition THEN
// ...
ELSIF condition2 THEN
// ...
END_IF
should turn into
IF condition THEN
// ...
ELSE
IF condition2 THEN
// ...
ELSE
// ...
END_IF
END_IF
The text was updated successfully, but these errors were encountered:
#1379 has resulted in a regression when evaluating
ELSIF
conditions if said condition contains a call to a function with aggregate return types. Due to the way the AST is lowered, these calls will now always be evaluated even if any of the previous conditional blocks already evaluated asTRUE
, possibly leading to side-effects.A possible solution to this is further lowering
IF
conditional blocks and nesting eachELSIF
statement in a separateIF THEN ELSE
statement within the previous conditionsELSE
block, i.e.should turn into
The text was updated successfully, but these errors were encountered: