Skip to content

possibly-unresolved-reference false positive inside function when both variable and function are defined in the same branch of an if statement #607

@DetachHead

Description

@DetachHead

Summary

def _(value: bool):
   if value:
      a = 1

      def asdf():
         print(a) # possibly-unresolved-reference

https://play.ty.dev/f90a868c-cc44-4d7d-af01-9112b87e384a

Version

0.0.1-alpha.8 (c1337c9 2025-06-02)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions