Skip to content

Captured argument variable not initialized #705

@arshajii

Description

@arshajii
def func_1(N: int):
    print(N)
    def func_2(x: int) -> int:
        return x+N
    N = 0

func_1(42)

Python prints 42, but Codon prints None.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions