mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
341 B
TypeScript
16 lines
341 B
TypeScript
//// [tests/cases/compiler/enumInitializersWithExponents.ts] ////
|
|
|
|
//// [enumInitializersWithExponents.ts]
|
|
// Must be integer literals.
|
|
declare enum E {
|
|
a = 1e3, // ok
|
|
b = 1e25, // ok
|
|
c = 1e-3, // error
|
|
d = 1e-9, // error
|
|
e = 1e0, // ok
|
|
f = 1e+25 // ok
|
|
}
|
|
|
|
//// [enumInitializersWithExponents.js]
|
|
"use strict";
|