12 lines
669 B
Text
12 lines
669 B
Text
|
tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty8.ts(2,5): error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
||
|
tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty8.ts(2,6): error TS2304: Cannot find name 'Symbol'.
|
||
|
|
||
|
|
||
|
==== tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty8.ts (2 errors) ====
|
||
|
var x: {
|
||
|
[Symbol.toPrimitive](): string
|
||
|
~~~~~~~~~~~~~~~~~~~~
|
||
|
!!! error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
||
|
~~~~~~
|
||
|
!!! error TS2304: Cannot find name 'Symbol'.
|
||
|
}
|