XSharpPublic icon indicating copy to clipboard operation
XSharpPublic copied to clipboard

Compiler error reporting problem with unknown var in RECOVER USING statement

Open cpyrgas opened this issue 1 year ago • 0 comments

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

cpyrgas avatar Sep 25 '24 08:09 cpyrgas