16 lines
496 B
Text
16 lines
496 B
Text
=== tests/cases/conformance/es6/for-ofStatements/for-of29.ts ===
|
|
var iterableWithOptionalIterator: {
|
|
>iterableWithOptionalIterator : { [Symbol.iterator]?(): Iterator<string>; }
|
|
|
|
[Symbol.iterator]?(): Iterator<string>
|
|
>[Symbol.iterator] : () => Iterator<string>
|
|
>Symbol.iterator : symbol
|
|
>Symbol : SymbolConstructor
|
|
>iterator : symbol
|
|
|
|
};
|
|
|
|
for (var v of iterableWithOptionalIterator) { }
|
|
>v : string
|
|
>iterableWithOptionalIterator : { [Symbol.iterator]?(): Iterator<string>; }
|
|
|