function foo(i: number) {
let x = 10;
for (let i = 0; i < 10; i++) {
x++;
return;
}
}
function foo(i: number) {
let x = 10;
for (let i = 0; i < 10; i++) {
x = newFunction(x);
}
}
function newFunction(x: number) {
x++;
return x;
}
which is not sematic preserving.
which is not sematic preserving.