Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahejlsberg committed Dec 20, 2023
1 parent 14b90c2 commit 2fc975a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/baselines/reference/noInfer.errors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ noInfer.ts(66,14): error TS2345: Argument of type '{}' is not assignable to para
type T21<T> = NoInfer<NoInfer<T> & string>;
type T22<T> = NoInfer<NoInfer<T> & string[]>;

// NoInfer<T> is erased in index types and mapped types
// keyof NoInfer<T> is transformed into NoInfer<keyof T>

type T30 = keyof NoInfer<{ a: string, b: string }>;
type T31<T> = keyof NoInfer<T>;
Expand Down
2 changes: 1 addition & 1 deletion tests/baselines/reference/noInfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type T20<T> = NoInfer<NoInfer<T>>;
type T21<T> = NoInfer<NoInfer<T> & string>;
type T22<T> = NoInfer<NoInfer<T> & string[]>;

// NoInfer<T> is erased in index types and mapped types
// keyof NoInfer<T> is transformed into NoInfer<keyof T>

type T30 = keyof NoInfer<{ a: string, b: string }>;
type T31<T> = keyof NoInfer<T>;
Expand Down
2 changes: 1 addition & 1 deletion tests/baselines/reference/noInfer.symbols
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type T22<T> = NoInfer<NoInfer<T> & string[]>;
>NoInfer : Symbol(NoInfer, Decl(lib.es5.d.ts, --, --))
>T : Symbol(T, Decl(noInfer.ts, 19, 9))

// NoInfer<T> is erased in index types and mapped types
// keyof NoInfer<T> is transformed into NoInfer<keyof T>

type T30 = keyof NoInfer<{ a: string, b: string }>;
>T30 : Symbol(T30, Decl(noInfer.ts, 19, 45))
Expand Down
4 changes: 2 additions & 2 deletions tests/baselines/reference/noInfer.types
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ type T21<T> = NoInfer<NoInfer<T> & string>;
type T22<T> = NoInfer<NoInfer<T> & string[]>;
>T22 : NoInfer<NoInfer<T> & string[]>

// NoInfer<T> is erased in index types and mapped types
// keyof NoInfer<T> is transformed into NoInfer<keyof T>

type T30 = keyof NoInfer<{ a: string, b: string }>;
>T30 : "a" | "b"
>a : string
>b : string

type T31<T> = keyof NoInfer<T>;
>T31 : keyof T
>T31 : NoInfer<keyof T>

type T32 = { [K in keyof NoInfer<{ a: string, b: string }>]: K };
>T32 : { a: "a"; b: "b"; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type T20<T> = NoInfer<NoInfer<T>>;
type T21<T> = NoInfer<NoInfer<T> & string>;
type T22<T> = NoInfer<NoInfer<T> & string[]>;

// NoInfer<T> is erased in index types and mapped types
// keyof NoInfer<T> is transformed into NoInfer<keyof T>

type T30 = keyof NoInfer<{ a: string, b: string }>;
type T31<T> = keyof NoInfer<T>;
Expand Down

0 comments on commit 2fc975a

Please sign in to comment.