16 lines
No EOL
773 B
Text
16 lines
No EOL
773 B
Text
tests/cases/conformance/Symbols/ES5SymbolProperty5.ts(4,5): error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
|
tests/cases/conformance/Symbols/ES5SymbolProperty5.ts(7,1): error TS2346: Supplied parameters do not match any signature of call target.
|
|
|
|
|
|
==== tests/cases/conformance/Symbols/ES5SymbolProperty5.ts (2 errors) ====
|
|
var Symbol: { iterator: symbol };
|
|
|
|
class C {
|
|
[Symbol.iterator]() { }
|
|
~~~~~~~~~~~~~~~~~
|
|
!!! error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
|
}
|
|
|
|
(new C)[Symbol.iterator](0) // Should error
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2346: Supplied parameters do not match any signature of call target. |