13 lines
493 B
Plaintext
13 lines
493 B
Plaintext
|
tests/cases/conformance/es6/Symbols/symbolProperty49.ts(5,10): error TS2471: A computed property name of the form 'Symbol.iterator' must be of type 'symbol'.
|
||
|
|
||
|
|
||
|
==== tests/cases/conformance/es6/Symbols/symbolProperty49.ts (1 errors) ====
|
||
|
module M {
|
||
|
export var Symbol;
|
||
|
|
||
|
class C {
|
||
|
[Symbol.iterator]() { }
|
||
|
~~~~~~~~~~~~~~~
|
||
|
!!! error TS2471: A computed property name of the form 'Symbol.iterator' must be of type 'symbol'.
|
||
|
}
|
||
|
}
|