16 lines
No EOL
761 B
Text
16 lines
No EOL
761 B
Text
tests/cases/conformance/Symbols/ES5SymbolProperty3.ts(4,5): error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
|
tests/cases/conformance/Symbols/ES5SymbolProperty3.ts(4,6): error TS2471: A computed property name of the form 'Symbol.iterator' must be of type 'symbol'.
|
|
|
|
|
|
==== tests/cases/conformance/Symbols/ES5SymbolProperty3.ts (2 errors) ====
|
|
var Symbol;
|
|
|
|
class C {
|
|
[Symbol.iterator]() { }
|
|
~~~~~~~~~~~~~~~~~
|
|
!!! error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
|
~~~~~~~~~~~~~~~
|
|
!!! error TS2471: A computed property name of the form 'Symbol.iterator' must be of type 'symbol'.
|
|
}
|
|
|
|
(new C)[Symbol.iterator] |