ascot diagnostics

A8456

Warning: This condition is always {value}

Every value the condition can hold decides it the same way, so one of its branches never runs. IRIS compiles and runs the code as written. A loop’s own condition is exempt, since While 1 { ... Quit } is an idiom; for an If, remove the test or let the value vary.

IRIS compiles the example.

Class Demo.ConditionAlways
{

ClassMethod Save() As %String
{
    Set verbose = 1
    If verbose Write "saving", ! //! A8456
    Quit "saved"
}

}

All diagnostics