mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-13 07:28:03 -05:00
16 lines
242 B
TypeScript
16 lines
242 B
TypeScript
import { inc } from 'value-script';
|
|
|
|
export default function main() {
|
|
function f1(a: number, b: number, c: number) {
|
|
return a + b * c;
|
|
}
|
|
|
|
function f2() {
|
|
inc.call(this);
|
|
}
|
|
|
|
let x = f1(1, 2, 3);
|
|
f2.call(x);
|
|
|
|
return x;
|
|
} |