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

12 lines
183 B
TypeScript

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