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

11 lines
146 B
TypeScript

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