Make All Defined Functions Available w/o Regard to Definition Order
JasonSteving99 opened this issue · comments
Jason Steving commented
Currently functions are only accessible on lines following their declaration. Somehow add another new preprocessing compiler phase (which runs before the current type-checking phase) that finds all functions so that they're defined before type-checking happens regardless of what order the calls come in the linear source (and honestly it should store this signature metadata somewhere outside the current ScopedHeap because we might also want to track this signature info for things like named params).
Jason Steving commented
I fixed this in this commit 5f49114