We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 713ef38 commit e061ea1Copy full SHA for e061ea1
tests/baselines/reference/badInferenceLowerPriorityThanGoodInference.types
@@ -1,25 +1,16 @@
1
=== tests/cases/compiler/badInferenceLowerPriorityThanGoodInference.ts ===
2
interface Foo<A> {
3
->Foo : Foo<A>
4
->A : A
5
-
6
a: A;
7
>a : A
8
9
10
b: (x: A) => void;
11
>b : (x: A) => void
12
>x : A
13
14
}
15
16
declare function canYouInferThis<A>(fn: () => Foo<A>): A;
17
>canYouInferThis : <A>(fn: () => Foo<A>) => A
18
19
>fn : () => Foo<A>
20
21
22
23
24
const result = canYouInferThis(() => ({
25
>result : { BLAH: number; }
0 commit comments