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

importing a file and including it as a cli arguments leads to bad error message #5660

Open
expipiplus1 opened this issue Nov 25, 2024 · 0 comments
Labels
kind:bug something doesn't work like it should

Comments

@expipiplus1
Copy link
Collaborator

nullType.slang:

import nullTypeModule;

struct S { }

extension S : I { }

nullTypeModule.slang:

interface I { } 

slangc -stage compute tests/bugs/nullTypeModule.slang tests/bugs/nullType.slang

tests/bugs/nullType.slang(5): error 39999: ambiguous reference to 'I'
extension S : I { }
              ^
tests/bugs/nullTypeModule.slang(1): note 39999: candidate: interface I
interface I { }
          ^
tests/bugs/nullTypeModule.slang(1): note 39999: candidate: interface I
interface I { }
          ^

This "ambiguous" reference refers to the same name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug something doesn't work like it should
Projects
None yet
Development

No branches or pull requests

1 participant