Scope error with SDK 8.2.1 but not in 8.1.1

I have the following (simplified) code that compiled without issues in SDK 8.1.1, but now fails in SDK 8.2.1 with the error:
"Value 'JQ' not available in all function scopes."

A similar error also occurs when calling another member function of the same class. I'm confused because both the function and the variable are part of the same class and share the same scope annotations.

I'm using type check level 3, and the error disappears if I disable the background scope check.

Is there something wrong with my code, or could this be a bug in the new SDK?

(:glance :background) 
class EvccStateRequestBackground {

        // ...
    
    public var JQ as String = "TEST";
        
        // ...

    public function makeRequest() as Void {
                // ...
        var parameters = { "jq" => JQ };
        // ...
    }
}

The full code can be found at the link below — the error occurs on lines 76 and 123.

github.com/.../EvccStateRequestBackground.mc