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

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

Open
adam-mcdaniel opened this issue Sep 6, 2024 · 0 comments
Open
Labels
bug Something isn't working Typechecking⚠️ Relating to the typechecker

Comments

@adam-mcdaniel
Copy link
Owner

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.

@adam-mcdaniel adam-mcdaniel added bug Something isn't working Typechecking⚠️ Relating to the typechecker labels Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Typechecking⚠️ Relating to the typechecker
Projects
None yet
Development

No branches or pull requests

1 participant