marimo icon indicating copy to clipboard operation
marimo copied to clipboard

[ast] missing ref with nested scopes

Open akshayka opened this issue 7 months ago • 0 comments

Describe the bug

The following cell should have x as a ref, but doesn't.

def f():
    print(x)
    def g():
        def h():
            x
        # oops, this will evict x as a ref
        x = 0

Environment

0.13.2

Code to reproduce

No response

akshayka avatar Apr 30 '25 04:04 akshayka