1 2 3 4 5 6 7 8 9 10 11 12
|
parserComputedPropertyName32.ts(2,5): error TS1165: A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type.
parserComputedPropertyName32.ts(2,6): error TS2304: Cannot find name 'e'.
==== parserComputedPropertyName32.ts (2 errors) ====
declare class C {
[e](): number
~~~
!!! error TS1165: A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type.
~
!!! error TS2304: Cannot find name 'e'.
}
|