mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
b887b30092
**Description:** This is required for https://github.com/swc-project/swc/pull/6981 and https://github.com/swc-project/swc/pull/6950
12 lines
313 B
TypeScript
12 lines
313 B
TypeScript
// In ambient enum declarations that specify no const modifier, enum member declarations
|
|
// that omit a value are considered computed members (as opposed to having auto- incremented values assigned).
|
|
|
|
declare enum E {
|
|
a, // E.a
|
|
b, // E.b
|
|
}
|
|
|
|
declare const enum E1 {
|
|
a, // E.a = 0
|
|
b, // E.b = 1
|
|
} |