TypeScript/tests/cases/conformance/es6/for-ofStatements/for-of16.ts
2017-02-24 17:48:06 -08:00

9 lines
168 B
TypeScript

//@target: ES6
class StringIterator {
[Symbol.iterator]() {
return this;
}
}
var v: string;
for (v of new StringIterator) { } // Should fail