Skip to content

Commit 19f70f6

Browse files
committed
Add additional test
1 parent 9ef417b commit 19f70f6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/cases/compiler/indirectTypeParameterReferences.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ combined(comb => {
2222
comb.b
2323
comb.a
2424
})
25+
26+
// Repro from #19091
27+
28+
declare function f<T>(a: T): { a: typeof a };
29+
let n: number = f(2).a;

0 commit comments

Comments
 (0)