Skip to content

Commit c694ffe

Browse files
committed
Update tests
1 parent 074961f commit c694ffe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/cases/conformance/types/unknown/unknownType1.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type T33<T> = T extends never ? true : false; // Deferred
3737
// keyof unknown
3838

3939
type T40 = keyof any; // string | number | symbol
40-
type T41 = keyof unknown; // string | number | symbol
40+
type T41 = keyof unknown; // never
4141

4242
// Only equality operators are allowed with unknown
4343

@@ -82,8 +82,8 @@ function f20(x: unknown) {
8282
// Homomorphic mapped type over unknown
8383

8484
type T50<T> = { [P in keyof T]: number };
85-
type T51 = T50<unknown>; // { [x: string]: number }
86-
type T52 = T50<any>; // { [x: string]: number }
85+
type T51 = T50<any>; // { [x: string]: number }
86+
type T52 = T50<unknown>; // {}
8787

8888
// Anything is assignable to unknown
8989

0 commit comments

Comments
 (0)