16 lines
No EOL
780 B
Text
16 lines
No EOL
780 B
Text
tests/cases/conformance/Symbols/ES5SymbolProperty7.ts(4,5): error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
|
tests/cases/conformance/Symbols/ES5SymbolProperty7.ts(4,6): error TS2471: A computed property name of the form 'Symbol.iterator' must be of type 'symbol'.
|
|
|
|
|
|
==== tests/cases/conformance/Symbols/ES5SymbolProperty7.ts (2 errors) ====
|
|
var Symbol: { iterator: any };
|
|
|
|
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] |