When you import a file in another file and then use a function from the original file in the core file, there's no diagnostic.
It's a problem in the binding of imports inside the BindGlobalScope method.
To Reproduce
Steps to reproduce the behavior:
Create file a.ao
Create a function that prints a
Create file b.ao
Import a
Create file core.ao
Import b.ao
Reference the function inside a.ao
Run the compiler
Expected behavior
We should get an error saying that <functionName> does not existing.
Describe the bug
When you import a file in another file and then use a function from the original file in the core file, there's no diagnostic. It's a problem in the binding of imports inside the
BindGlobalScope
method.To Reproduce
Steps to reproduce the behavior:
a.ao
a
b.ao
a
core.ao
b.ao
a.ao
Expected behavior
We should get an error saying that
<functionName>
does not existing.