TypeScript/tests/baselines/reference/symbolProperty53.errors.txt
2015-02-06 21:32:44 -08:00

14 lines
723 B
Plaintext

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'.