mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-13 15:38:06 -05:00
17 lines
187 B
TypeScript
17 lines
187 B
TypeScript
// test_output! 7
|
|
|
|
export default function main() {
|
|
function foo() {
|
|
const x = 3;
|
|
return x + bar();
|
|
}
|
|
|
|
const x = 4;
|
|
|
|
function bar() {
|
|
return x;
|
|
}
|
|
|
|
return foo();
|
|
}
|