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

9 lines
190 B
TypeScript

//@target: ES6
class StringIterator {
next() {
return "";
}
}
var v: string;
for (v of new StringIterator) { } // Should fail because the iterator is not iterable