Skip to content

unassigned local variable can sometimes hold values other than nil #263

Description

@ShadowTheAge

lua code

for k,v in pairs{1} do local my; return my; end

Expected result:
my == nil
Actual result
my is a table

(I am using MoonSharp for Unity)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions