Error: This value is undefined{expr}
The variable has no value on any branch that reaches this use. This happens when nothing
assigns it, or when every assignment is killed or skipped on the way. IRIS compiles the code
and raises <UNDEFINED> when it runs. Assign the variable first, or read it through $Get.
IRIS compiles the example, and do ##class(Demo.Undefined).Total() raises <UNDEFINED> when it runs.
Class Demo.Undefined
{
ClassMethod Total() As %Integer
{
Set sum = 0
Quit sum + count //! A7095
}
}