-
Notifications
You must be signed in to change notification settings - Fork 30
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
2nd-level import reports errors at 1st-level import's call-site to l2 #110
Comments
Do you have the complete output from running this program? |
added in private thread |
I'm unable to replicate this. I'm using the following test: import { Program } from "@hyperionbt/helios";
export default async function test() {
const program = Program.new(`
testing nested_modules
import { foo } from Foo
func main() -> Bool {
foo()
}
`, [
`
module Foo
import { bar } from Bar
func foo() -> Bool {
print("foo");
bar()
}
`,
`module Bar
func bar() -> Bool {
if (1 == 1) {
error("bar")
};
true
}`
]);
console.log((await program.compile(false).run([])).toString())
}
test() The printed output is:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
script:
import {foo} from foo; ... foo()
foo:
bar:
I'm expecting all the issues in bar to be reported at sites in bar, but are reported at foo "line 42" instead. Nothing catastrophic, but for good modularity support...
The text was updated successfully, but these errors were encountered: