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

11 lines
141 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;