Warning: Variable ‘{name}’ is assigned but never read
The Set assigns a value that nothing reads, because the variable is set again or killed
before any read, or is never used again. A formal argument the method never reads is
reported the same way, or as A4269 when the method overrides a superclass’s method. IRIS
compiles and runs the code. Remove the assignment or the formal argument, or read the
variable where it was meant to be read.
IRIS compiles the example.
Class Demo.UnreadAssignment
{
ClassMethod Greet(name As %String) As %String
{
Set greeting = "Hello, " _ name //! A5718
Quit "Hi, " _ name
}
}