21 lines
339 B
TypeScript
21 lines
339 B
TypeScript
|
// @strictNullChecks: true
|
||
|
|
||
|
let cond: boolean;
|
||
|
|
||
|
function ff() {
|
||
|
let x: string | undefined;
|
||
|
while (true) {
|
||
|
if (cond) {
|
||
|
x = "";
|
||
|
}
|
||
|
else {
|
||
|
if (x) {
|
||
|
x.length;
|
||
|
}
|
||
|
if (x) {
|
||
|
x.length;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|