Skip to content

augmented assignment seems to use different function name resolution than normal calls #33

@timfennis

Description

@timfennis

Surprisingly the code below works because apparently calling a function searches the scopes for a function that matches:

let min = 1000;

min = min(min, 5);

print(min);

Considering this the following example is even more surprising since it gives a borrowchecker error:

let min = 1000;
min min= 5;
print(min);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions