Skip to content

Implement overloading #535

Closed
Closed
@pcwalton

Description

@pcwalton

Synopsis:

mod foo { overload fn f(int x) { log x; } }
mod bar { overload fn f(str s) { log s; } }
import foo::f;
import bar::f;
fn main() {
    f(3);
    f("hello world");
}

Result:

3
hello world

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions