swc/crates/swc_ecma_parser/tests/tsc/symbolProperty10.ts

11 lines
142 B
TypeScript

//@target: ES6
class C {
[Symbol.iterator]: { x; y };
}
interface I {
[Symbol.iterator]?: { x };
}
var i: I;
i = new C;
var c: C = i;