mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
425 B
Plaintext
15 lines
425 B
Plaintext
computedEnumMemberKeyNoCrash1.ts(4,5): error TS1164: Computed property names are not allowed in enums.
|
|
|
|
|
|
==== computedEnumMemberKeyNoCrash1.ts (1 errors) ====
|
|
// https://github.com/microsoft/TypeScript/issues/63173
|
|
|
|
declare const enum E {
|
|
[foo] = 1,
|
|
~~~~~
|
|
!!! error TS1164: Computed property names are not allowed in enums.
|
|
A,
|
|
foo = 10,
|
|
}
|
|
E.A.toString();
|
|
|