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

Method name duplicate checking checks outside of type's scope #489

Open
kengorab opened this issue Nov 7, 2024 · 0 comments
Open

Method name duplicate checking checks outside of type's scope #489

kengorab opened this issue Nov 7, 2024 · 0 comments
Labels
bug Something isn't working typechecker

Comments

@kengorab
Copy link
Owner

kengorab commented Nov 7, 2024

See the following code:

// example.abra

import foo from "process"

type F {
  func foo(self) {}
}

This should be perfectly acceptable but produces the error:

Error at <path>/example.abra:<location>
Duplicate name 'foo'
  |    func foo(self) {}
            ^
This name is also declared at (1:8)
  |  import foo from "process"
            ^
@kengorab kengorab added bug Something isn't working typechecker labels Nov 7, 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 typechecker
Projects
None yet
Development

No branches or pull requests

1 participant