//@target: ES6 interface I { [Symbol.unscopables](x: T): U; } declare function foo(p1: T, p2: I): U; foo("", { [Symbol.unscopables]: s => s.length });