8 lines
122 B
TypeScript
8 lines
122 B
TypeScript
|
//@target: ES5
|
||
|
var Symbol: { iterator: string };
|
||
|
|
||
|
class C {
|
||
|
[Symbol.iterator]() { }
|
||
|
}
|
||
|
|
||
|
(new C)[Symbol.iterator]
|