It's a little bit complicated, loading a module is a two-step dance but here's how it's done. Probably some surface-area refactoring needs to happen so that we do the right thing.
14 lines
No EOL
304 B
Text
14 lines
No EOL
304 B
Text
import "./foo.fine" as foo;
|
|
|
|
// NOTE: This is right here because a known miscompilation will cause us to
|
|
// call this function instead of the actual target.
|
|
fun wrong_function() -> string {
|
|
"VERY WRONG"
|
|
}
|
|
|
|
fun test() -> string {
|
|
foo.hello() + " world"
|
|
}
|
|
|
|
// @no-errors
|
|
// @eval: String("hello world") |