mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
12 lines
190 B
TypeScript
12 lines
190 B
TypeScript
export default function main() {
|
|
const foo = () => bar(); // Should fail compilation: Binds uninitialized variable
|
|
|
|
const x = 3;
|
|
|
|
function bar() {
|
|
return x;
|
|
}
|
|
|
|
return foo();
|
|
}
|