TypeScript/tests/cases/compiler/elidedEmbeddedStatementsReplacedWithSemicolon.ts
Wesley Wigham 3765651d82
Fix not emitted statement in then clauses producing syntactically invalid output (#32010)
* Fix not emitted statement in then clauses producing syntactically invalid output

* Refactor to common code, apply to all embedded statements
2019-07-01 13:39:18 -07:00

24 lines
330 B
TypeScript

if (1)
const enum A {}
else
const enum B {}
do
const enum C {}
while (0);
while (0)
const enum D {}
for (;0;)
const enum E {}
for (let _ in [])
const enum F {}
for (let _ of [])
const enum G {}
// @ts-ignore suppress `with` statement error
with (window)
const enum H {}