mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Fix capturing for function declarations
This commit is contained in:
11
inputs/passing/nestedFnCapture.ts
Normal file
11
inputs/passing/nestedFnCapture.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
// test_output! 3
|
||||
|
||||
export default function () {
|
||||
const x = 3;
|
||||
|
||||
function foo() {
|
||||
return x;
|
||||
}
|
||||
|
||||
return foo();
|
||||
}
|
||||
Reference in New Issue
Block a user