[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.
This commit is contained in:
parent
ab477cd783
commit
a3d4c24f11
8 changed files with 506 additions and 274 deletions
|
|
@ -1,9 +1,14 @@
|
|||
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"
|
||||
}
|
||||
|
||||
// TODO: Obviously run the code duh
|
||||
// @no-errors
|
||||
/// @eval: asdf
|
||||
// @eval: String("hello world")
|
||||
Loading…
Add table
Add a link
Reference in a new issue