Skip to content

Goto definition doesn't take into account procedure overloading #98

Description

@xThuby

I have a few structs in my project, which I define an init proc for.

world = New(World);
init(world);

camera = New(Camera);
init(camera, render);

player = spawn_entity(entity_manager, Player);
init(*player);

using goto definition on the one of these init procs results in me being taken to whatever init proc it found first. In this case it takes me to the one for the player. It seems like the LSP doesn't take into account the type that's being passed into the proc, and only looks at the proc name? I haven't looked at the code yet though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions