Warning: $SELECT without a default raises <SELECT> when no condition holds
This $SELECT has no condition that is a constant true, so it has no value when every
condition is false. IRIS compiles the $SELECT and raises <SELECT> when it runs and no
condition holds. End the $SELECT with a 1:value pair, unless that failure is intended.
IRIS compiles the example, and write ##class(Demo.SelectWithoutDefault).Sign(0) raises <SELECT> when it runs.
Class Demo.SelectWithoutDefault
{
ClassMethod Sign(n As %Integer) As %String
{
Quit $SELECT(n > 0:"positive", n < 0:"negative") //! A9241
}
}