//@target: ES6 var iterableWithOptionalIterator: { [Symbol.iterator]?(): Iterator }; for (var v of iterableWithOptionalIterator) { }