mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
13 lines
266 B
TypeScript
13 lines
266 B
TypeScript
//@target: ES6
|
|
interface I<T, U> {
|
|
[Symbol.unscopables]: T;
|
|
[Symbol.isConcatSpreadable]: U;
|
|
}
|
|
|
|
declare function foo<T, U>(p: I<T, U>): { t: T; u: U };
|
|
|
|
foo({
|
|
[Symbol.isConcatSpreadable]: "",
|
|
[Symbol.toPrimitive]: 0,
|
|
[Symbol.unscopables]: true
|
|
}); |