14 lines
No EOL
723 B
Text
14 lines
No EOL
723 B
Text
tests/cases/conformance/es6/Symbols/symbolProperty53.ts(2,5): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
|
|
tests/cases/conformance/es6/Symbols/symbolProperty53.ts(5,1): error TS2342: An index expression argument must be of type 'string', 'number', 'symbol, or 'any'.
|
|
|
|
|
|
==== tests/cases/conformance/es6/Symbols/symbolProperty53.ts (2 errors) ====
|
|
var obj = {
|
|
[Symbol.for]: 0
|
|
~~~~~~~~~~~~
|
|
!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
|
|
};
|
|
|
|
obj[Symbol.for];
|
|
~~~~~~~~~~~~~~~
|
|
!!! error TS2342: An index expression argument must be of type 'string', 'number', 'symbol, or 'any'. |