mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-13 07:28:03 -05:00
16 lines
237 B
TypeScript
16 lines
237 B
TypeScript
//! test_output(105)
|
|
|
|
export default () => {
|
|
return [
|
|
new stuff[0]().x,
|
|
stuff[1](),
|
|
stuff[2](),
|
|
].reduce((a, b) => a * b);
|
|
};
|
|
|
|
const stuff = [
|
|
class Foo { x = 3; },
|
|
function bar() { return 5 },
|
|
() => 7,
|
|
] as const;
|