mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
603 B
Plaintext
25 lines
603 B
Plaintext
//// [tests/cases/compiler/doWhileUnreachableCode.ts] ////
|
|
|
|
=== doWhileUnreachableCode.ts ===
|
|
function test() {
|
|
>test : Symbol(test, Decl(doWhileUnreachableCode.ts, 0, 0))
|
|
|
|
let foo = 0;
|
|
>foo : Symbol(foo, Decl(doWhileUnreachableCode.ts, 1, 7))
|
|
|
|
testLoop: do {
|
|
foo++;
|
|
>foo : Symbol(foo, Decl(doWhileUnreachableCode.ts, 1, 7))
|
|
|
|
continue testLoop;
|
|
} while (function() {
|
|
var x = 1;
|
|
>x : Symbol(x, Decl(doWhileUnreachableCode.ts, 6, 11))
|
|
|
|
return false;
|
|
}());
|
|
|
|
return foo;
|
|
>foo : Symbol(foo, Decl(doWhileUnreachableCode.ts, 1, 7))
|
|
}
|