mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
262 B
TypeScript
15 lines
262 B
TypeScript
//// [tests/cases/compiler/ambientEnum1.ts] ////
|
|
|
|
//// [ambientEnum1.ts]
|
|
declare enum E1 {
|
|
y = 4.23
|
|
}
|
|
|
|
// Ambient enum with computer member
|
|
declare enum E2 {
|
|
x = 'foo'.length
|
|
}
|
|
|
|
//// [ambientEnum1.js]
|
|
"use strict";
|