Skip to content

Impl methods/associated constants can be redefined without errors #78

@adam-mcdaniel

Description

@adam-mcdaniel

The compiler doesn't throw an error with the following code

impl Int {
    fun test() { println("test 1"); }
    fun test() { println("test 2"); }
}

Int.test();

Instead it should throw an error that test has multiple conflicting definitions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Typechecking⚠️Relating to the typecheckerbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions