Skip to content

Panic/nil when using properties and functions with same name #453

@scosman

Description

@scosman

Thanks for the great project!

I'm getting a invalid memory address or nil pointer dereference panic on the line switch fn.Kind() { in checker.CallNode.

It happens when I have an unknown function, but a variable/property of the same name, with a nil value. This is totally a weird case, but it should probably error and not panic. A nil check on fn and error is probably in order. I've worked around it, but it would be good for future folks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions