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

8 lines
115 B
TypeScript
Raw Normal View History

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