mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-13 23:48:02 -05:00
Refactor - stop assuming assignment to target_register
This commit is contained in:
9
inputs/passing/captureSimple.ts
Normal file
9
inputs/passing/captureSimple.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
//! test_output(37)
|
||||
|
||||
export default function main() {
|
||||
return constant(37)();
|
||||
}
|
||||
|
||||
function constant<T>(value: T) {
|
||||
return () => value;
|
||||
}
|
||||
Reference in New Issue
Block a user