mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 00:23:10 +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
|
|
}); |