swc/crates/swc_ecma_parser/tests/tsc/for-of35.ts

16 lines
249 B
TypeScript

//@target: ES6
//@noImplicitAny: true
class StringIterator {
next() {
return {
done: true,
value: v
}
}
[Symbol.iterator]() {
return this;
}
}
for (var v of new StringIterator) { }