mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 00:23:10 +03:00
8 lines
134 B
TypeScript
8 lines
134 B
TypeScript
//@target: ES5
|
|
var Symbol: { iterator: symbol };
|
|
|
|
class C {
|
|
[Symbol.iterator]() { }
|
|
}
|
|
|
|
(new C)[Symbol.iterator](0) // Should error
|