mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +03:00
17 lines
351 B
TypeScript
17 lines
351 B
TypeScript
// @checkJs: true
|
|
// @allowJs: true
|
|
// @noEmit: true
|
|
|
|
// @Filename: dummyType.d.ts
|
|
declare class C<T> { t: T }
|
|
|
|
// @Filename: badTypeArguments.js
|
|
/** @param {C.<>} x */
|
|
/** @param {C.<number,>} y */
|
|
// @ts-ignore
|
|
/** @param {C.<number,>} skipped */
|
|
function f(x, y, skipped) {
|
|
return x.t + y.t;
|
|
}
|
|
var x = f({ t: 1000 }, { t: 3000 }, { t: 5000 });
|