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 5a567ad commit 0783757Copy full SHA for 0783757
tests/cases/conformance/types/conditional/inferTypes2.ts
@@ -14,3 +14,11 @@ export declare function foo2<T>(obj: T): T extends { [K in keyof BadNested<infer
14
export function bar2<T>(obj: T) {
15
return foo2(obj);
16
}
17
+
18
+// Repros from #31099
19
20
+type Weird = any extends infer U ? U : never;
21
+type AlsoWeird = unknown extends infer U ? U : never;
22
23
+const a: Weird = null;
24
+const b: string = a;
0 commit comments