Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TODO - Handle overloaded functions #63

Closed
schungx opened this issue Jul 23, 2022 · 0 comments
Closed

TODO - Handle overloaded functions #63

schungx opened this issue Jul 23, 2022 · 0 comments
Labels
A-HIR Area: HIR E-Hard feature P-Medium Priority: Medium T-Types Related to the type system

Comments

@schungx
Copy link
Collaborator

schungx commented Jul 23, 2022

Right now multiple overloaded functions do not seem to be handled.

For example:

fn foo(a, b, c, d, e, f) {}
fn foo(x, y, z) {}
fn foo(n) {}

/./ The following three calls should resolve to different overloaded versions
foo(1, 2, 3, 4, 5, 6);
foo(1, 2, 3);
foo(1);

Right now, it seems the function popup and "goto definition" jumps to a random choice, instead of at least matching the number of parameters...

@tamasfe tamasfe added feature A-HIR Area: HIR E-Hard P-Medium Priority: Medium labels Jul 23, 2022
@tamasfe tamasfe added the T-Types Related to the type system label Aug 7, 2022
@tamasfe tamasfe closed this as not planned Won't fix, can't repro, duplicate, stale Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-HIR Area: HIR E-Hard feature P-Medium Priority: Medium T-Types Related to the type system
Projects
None yet
Development

No branches or pull requests

2 participants