class TestClass:
define public property m_Total as integer no-undo
get.
set.
define public property Totals as integer no-undo
get:
if m_Total < 0 then
return 0.
else
return m_Total.
end.
end get.
set (newValue as integer):
m_Total = newValue.
end set.
end class.
Your if else inside getter is invalid code, AFAIK you can't use 'end.' for else when using if else with (single) terminated statement, only when doing THEN DO: variant.
Setter broke because of name of the second variable, it contains NEW at the beginning and new keyword has priority over identifier name so it tried to parse new expression :( This is related to the same issue at #53
Example: