Skip to content

Commit

Permalink
chore(type): add test to cover #509
Browse files Browse the repository at this point in the history
  • Loading branch information
marcj committed Nov 21, 2023
1 parent 7b0c262 commit 8d8fe61
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/type/tests/generics.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,16 @@ test('T array length', () => {
type r2 = Tuple<[string, number]>;
expectEqualType(typeOf<r2>(), typeOf<['hi', 2]>() as any, { noTypeNames: true });
});

test('asd', () => {
function a<T>(t: T): T {
return b<T>(t);
}

function b<T>(t: T): T {
return t;
}

a(1);

});

0 comments on commit 8d8fe61

Please sign in to comment.