XSharpPublic
XSharpPublic copied to clipboard
Compiler error reporting problem with unknown var in RECOVER USING statement
Small issue, error about unknown variable "err" is reported on the BEGIN SEQUENCE line, not on the RECOVER USING one.
Also it is being reported by the compiler 3 times (3 identical error messages reported by the compiler, although the Errors window in VS shows it only one time)
FUNCTION Test() AS VOID
BEGIN SEQUENCE // error XS0103: The name 'err' does not exist in the current context
LOCAL n := 0
n += 0
n /= 0
RECOVER USING err // error should be reported here
NOP
END SEQUENCE