mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-19 08:24:15 -06:00
Accept new baselines
This commit is contained in:
parent
9ac7667d5c
commit
6ceab7bce7
@ -79,7 +79,7 @@ tests/cases/conformance/types/mapped/mappedTypeErrors.ts(51,24): error TS2344: T
|
||||
!!! error TS2344: Type '"x" | "y"' does not satisfy the constraint '"name" | "width" | "height" | "visible"'.
|
||||
!!! error TS2344: Type '"x"' is not assignable to type '"name" | "width" | "height" | "visible"'.
|
||||
type T15 = Pick<Shape, never>;
|
||||
type T16 = Pick<Shape, undefined>;
|
||||
type T16 = Pick<Shape, undefined>; // Error
|
||||
~~~~~~~~~
|
||||
!!! error TS2344: Type 'undefined' does not satisfy the constraint '"name" | "width" | "height" | "visible"'.
|
||||
|
||||
|
||||
@ -42,7 +42,7 @@ type T12 = Pick<Shape, "name" | "foo">; // Error
|
||||
type T13 = Pick<Shape, keyof Named>;
|
||||
type T14 = Pick<Shape, keyof Point>; // Error
|
||||
type T15 = Pick<Shape, never>;
|
||||
type T16 = Pick<Shape, undefined>;
|
||||
type T16 = Pick<Shape, undefined>; // Error
|
||||
|
||||
function f1<T>(x: T) {
|
||||
let y: Pick<Shape, T>; // Error
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user