Files
mgmt/lang/interpret_test/TestAstFunc2/func-gen1.txtar
James Shubin 55eeb50fb4 lang: Refactor all the highlight helping together
Keep this cleaner and add a bit more.
2025-06-07 17:52:15 -04:00

15 lines
365 B
Plaintext

-- main.mcl --
# This sort of thing is not currently supported, and not sure if it ever will.
# test generating a function
class funcgen1 {
func fun1() {
"hi"
}
}
include funcgen1
$x1 = fun1() # not funcgen1.fun1 since it's *not* an import!
test "${x1}" {} # hi
-- OUTPUT --
# err: errSetScope: func `fun1` does not exist in this scope: /main.mcl @ 10:7-10:13