13 lines
No EOL
493 B
Text
13 lines
No EOL
493 B
Text
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'.
|
|
}
|
|
} |