oden/fine/tests/modules/import.fine
John Doty a3d4c24f11 [fine] Multi-module compilation
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.
2024-03-30 16:33:27 -07:00

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")