Warning: Variable ‘{name}’ is assigned but never read
A Set whose value no path reads before the variable is assigned again, killed or out of
scope; a formal argument the body never reads is reported the same way, its value being
the caller’s assignment. IRIS compiles and runs the code; the assignment is dead. Delete it,
or read the variable where it was meant to be read. A Catch variable, or a formal argument
of a method that overrides one, is A4269 instead: neither can go.
IRIS compiles the example.
Class Demo.UnreadAssignment
{
ClassMethod Greet(name As %String) As %String
{
Set greeting = "Hello, " _ name //! A5718
Quit "Hi, " _ name
}
}