You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ...
print("hi"); // or error()
stuff.get("thing-not-found")
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:
import{Program}from"@hyperionbt/helios";exportdefaultasyncfunctiontest(){constprogram=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((awaitprogram.compile(false).run([])).toString())}test()
The printed output is:
INFO (Foo:6:18) foo
INFO (Bar:5:22) bar
Error: thrown during UPLC evaluation
INFO (Foo:6:18) foo
ERROR (Bar:5:22) bar
TRACE (Bar:4:13)
TRACE (Foo:7:16)
TRACE (nested_modules:7:12)
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: