//! test_output(1)
// Should be: 0
///
export default function main() {
return measure(true) - measure(false);
}
function measure(doPush: boolean) {
const x = Debug.makeCopyCounter("x");
let arr: unknown[] = echo([x]);
if (doPush) {
arr = push(arr, "y");
}
return x.count;
}
function push(x: T[], value: T) {
x.push(value);
return x;
}
function echo(x: T) {
return x;
}