Skip to content

Function gets called when checking if a var with same name is defined #3116

@numberlesstim

Description

@numberlesstim
function foo {print 1.}
print defined(foo@).
print defined(foo).

results in the function being called by the last line:
Output:

true
1
false

Expected output:

true
false

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