mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +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; }
|
||
|
}
|