feat: connect source compilation and VM execution
Verify databases and deploy Aster VM / verify-and-deploy (push) Successful in 7m56s
Verify databases and deploy Aster VM / verify-and-deploy (push) Successful in 7m56s
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// 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, "局部名称优先")
|
||||
}
|
||||
Reference in New Issue
Block a user