Refactor - stop assuming assignment to target_register

This commit is contained in:
Andrew Morris
2023-06-22 13:08:08 +10:00
parent f830c01d91
commit 48433d650e
5 changed files with 99 additions and 125 deletions

View File

@@ -0,0 +1,9 @@
//! test_output(37)
export default function main() {
return constant(37)();
}
function constant<T>(value: T) {
return () => value;
}