mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 05:01:42 +03:00
10 lines
210 B
TypeScript
10 lines
210 B
TypeScript
|
//@target: ES6
|
||
|
interface I {
|
||
|
[Symbol.iterator]: (s: string) => string;
|
||
|
[Symbol.toStringTag](s: number): number;
|
||
|
}
|
||
|
|
||
|
var i: I = {
|
||
|
[Symbol.iterator]: s => s,
|
||
|
[Symbol.toStringTag](n) { return n; }
|
||
|
}
|