mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 16:42:28 +03:00
21 lines
319 B
TypeScript
21 lines
319 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;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|