Skip to content

function non-local, non-global accessible #327

Open
@lutzhamel

Description

@lutzhamel

The following code demonstrates a scoping bug

load system io.

function foo with x do
    if true==x do
        let a = 7.
        foo(false).
    else do
        io @println(a).
    end
end

foo(true).

The access to a in the print expression should generate an error.

Metadata

Metadata

Assignees

No one assigned

    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