mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
339 B
TypeScript
16 lines
339 B
TypeScript
//// [tests/cases/compiler/constEnumInEmbeddedStatements.ts] ////
|
|
|
|
//// [constEnumInEmbeddedStatements.ts]
|
|
function t(x: number) {
|
|
if (x)
|
|
/* before E */ const enum E { A = 1 } /* after E */
|
|
}
|
|
|
|
|
|
//// [constEnumInEmbeddedStatements.js]
|
|
"use strict";
|
|
function t(x) {
|
|
if (x)
|
|
/* before E */ ; /* after E */
|
|
}
|