mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +03:00
8 lines
174 B
TypeScript
8 lines
174 B
TypeScript
|
//@target: ES6
|
||
|
interface I<T, U> {
|
||
|
[Symbol.unscopables](x: T): U;
|
||
|
}
|
||
|
|
||
|
declare function foo<T, U>(p1: T, p2: I<T, U>): U;
|
||
|
|
||
|
foo("", { [Symbol.unscopables]: s => s.length });
|