Skip to content

Commit 7f90ad1

Browse files
committed
Add tests
1 parent de3f5f9 commit 7f90ad1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/cases/compiler/genericFunctionInference1.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,3 +185,11 @@ const fn62 = pipe(
185185
x => x,
186186
x => first(x),
187187
);
188+
189+
// Repro from #30297
190+
191+
declare function foo2<T, U = T>(fn: T, a?: U, b?: U): [T, U];
192+
193+
foo2(() => {});
194+
foo2(identity);
195+
foo2(identity, 1);

0 commit comments

Comments
 (0)