Warning: Variable ‘{name}’ is already NEW’d; this NEW discards its current value
A New names a variable the same method or routine has already New‘d. IRIS compiles and
runs the code. The second New discards the variable’s current value, as Kill does, and
leaves the variable undefined until it is set again. Delete the second New, or write
Kill if the value should go.
IRIS compiles the example.
ROUTINE Demo.RedundantNew
Main
New count
Set count = 1
Write count, !
New count //! A1817
Set count = 2
Write count, !
Quit