mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-12-11 17:41:26 -06:00
Accept new baselines
This commit is contained in:
parent
c816cf2562
commit
af7ccf954a
@ -75,4 +75,13 @@ tests/cases/conformance/types/typeRelationships/typeInference/unionTypeInference
|
||||
await fun(awaitedValue);
|
||||
}
|
||||
}
|
||||
|
||||
// Repro from #32752
|
||||
|
||||
type Deep<T> = { [K in keyof T]: T[K] | Deep<T[K]> };
|
||||
|
||||
declare function baz<T>(dp: Deep<T>): T;
|
||||
declare let xx: { a: string | undefined };
|
||||
|
||||
baz(xx);
|
||||
|
||||
@ -67,6 +67,15 @@ async function fun<T>(deepPromised: DeepPromised<T>) {
|
||||
await fun(awaitedValue);
|
||||
}
|
||||
}
|
||||
|
||||
// Repro from #32752
|
||||
|
||||
type Deep<T> = { [K in keyof T]: T[K] | Deep<T[K]> };
|
||||
|
||||
declare function baz<T>(dp: Deep<T>): T;
|
||||
declare let xx: { a: string | undefined };
|
||||
|
||||
baz(xx);
|
||||
|
||||
|
||||
//// [unionTypeInference.js]
|
||||
@ -101,3 +110,4 @@ async function fun(deepPromised) {
|
||||
await fun(awaitedValue);
|
||||
}
|
||||
}
|
||||
baz(xx);
|
||||
|
||||
@ -247,3 +247,32 @@ async function fun<T>(deepPromised: DeepPromised<T>) {
|
||||
}
|
||||
}
|
||||
|
||||
// Repro from #32752
|
||||
|
||||
type Deep<T> = { [K in keyof T]: T[K] | Deep<T[K]> };
|
||||
>Deep : Symbol(Deep, Decl(unionTypeInference.ts, 67, 1))
|
||||
>T : Symbol(T, Decl(unionTypeInference.ts, 71, 10))
|
||||
>K : Symbol(K, Decl(unionTypeInference.ts, 71, 18))
|
||||
>T : Symbol(T, Decl(unionTypeInference.ts, 71, 10))
|
||||
>T : Symbol(T, Decl(unionTypeInference.ts, 71, 10))
|
||||
>K : Symbol(K, Decl(unionTypeInference.ts, 71, 18))
|
||||
>Deep : Symbol(Deep, Decl(unionTypeInference.ts, 67, 1))
|
||||
>T : Symbol(T, Decl(unionTypeInference.ts, 71, 10))
|
||||
>K : Symbol(K, Decl(unionTypeInference.ts, 71, 18))
|
||||
|
||||
declare function baz<T>(dp: Deep<T>): T;
|
||||
>baz : Symbol(baz, Decl(unionTypeInference.ts, 71, 53))
|
||||
>T : Symbol(T, Decl(unionTypeInference.ts, 73, 21))
|
||||
>dp : Symbol(dp, Decl(unionTypeInference.ts, 73, 24))
|
||||
>Deep : Symbol(Deep, Decl(unionTypeInference.ts, 67, 1))
|
||||
>T : Symbol(T, Decl(unionTypeInference.ts, 73, 21))
|
||||
>T : Symbol(T, Decl(unionTypeInference.ts, 73, 21))
|
||||
|
||||
declare let xx: { a: string | undefined };
|
||||
>xx : Symbol(xx, Decl(unionTypeInference.ts, 74, 11))
|
||||
>a : Symbol(a, Decl(unionTypeInference.ts, 74, 17))
|
||||
|
||||
baz(xx);
|
||||
>baz : Symbol(baz, Decl(unionTypeInference.ts, 71, 53))
|
||||
>xx : Symbol(xx, Decl(unionTypeInference.ts, 74, 11))
|
||||
|
||||
|
||||
@ -236,3 +236,21 @@ async function fun<T>(deepPromised: DeepPromised<T>) {
|
||||
}
|
||||
}
|
||||
|
||||
// Repro from #32752
|
||||
|
||||
type Deep<T> = { [K in keyof T]: T[K] | Deep<T[K]> };
|
||||
>Deep : Deep<T>
|
||||
|
||||
declare function baz<T>(dp: Deep<T>): T;
|
||||
>baz : <T>(dp: Deep<T>) => T
|
||||
>dp : Deep<T>
|
||||
|
||||
declare let xx: { a: string | undefined };
|
||||
>xx : { a: string | undefined; }
|
||||
>a : string | undefined
|
||||
|
||||
baz(xx);
|
||||
>baz(xx) : { a: string | undefined; }
|
||||
>baz : <T>(dp: Deep<T>) => T
|
||||
>xx : { a: string | undefined; }
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user