Files
endorphin-aster-vm/crates/compiler/examples/shadowing.endor
T
codex-bot aa3257bfe6
Verify databases and deploy Aster VM / verify-and-deploy (push) Successful in 7m56s
feat: connect source compilation and VM execution
2026-10-19 14:50:37 +08:00

14 lines
320 B
Plaintext

// A parameter can shadow a module function, and functions are ordinary values.
function echo(value: String): String {
return value
}
function invoke(echo: Callable, value: String): String {
let chosen = echo
return chosen(value)
}
function main(): String {
return invoke(echo, "局部名称优先")
}