Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update tests
  • Loading branch information
ahejlsberg committed Dec 20, 2023
commit 2fc975ac4a401e84cbfc715bdbe4c9cefd7dea97
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