mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
49 lines
734 B
TypeScript
49 lines
734 B
TypeScript
//// [tests/cases/compiler/elidedEmbeddedStatementsReplacedWithSemicolon.ts] ////
|
|
|
|
//// [elidedEmbeddedStatementsReplacedWithSemicolon.ts]
|
|
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 {}
|
|
|
|
//// [elidedEmbeddedStatementsReplacedWithSemicolon.js]
|
|
"use strict";
|
|
if (1)
|
|
;
|
|
else
|
|
;
|
|
do
|
|
;
|
|
while (0);
|
|
while (0)
|
|
;
|
|
for (; 0;)
|
|
;
|
|
for (let _ in [])
|
|
;
|
|
for (let _ of [])
|
|
;
|
|
// @ts-ignore suppress `with` statement error
|
|
with (window)
|
|
;
|