mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +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; }
|
|
} |