swc/crates/swc_ecma_parser/tests/tsc/ES5SymbolProperty3.ts
2022-02-04 17:08:38 +09:00

8 lines
98 B
TypeScript

//@target: ES5
var Symbol: any;
class C {
[Symbol.iterator]() { }
}
(new C)[Symbol.iterator]