It works if decorate the expression to a function.
Code: Select all
implement justClass
class facts
fact1 : unsigned := erroneous.
facts
fact2 : unsigned :=
% if isErroneous(fact1) then 100 else fact1 end if. % error c150 : Syntax error
{ = if isErroneous(fact1) then 100 else fact1 end if}(). % O'k
end implement justClass
class justClass : justClass
properties
fact1 : unsigned.
end class justClass
interface justClass
properties
fact2 : unsigned.
end interface justClass
Thank you.