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

9 lines
154 B
TypeScript

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