Accept new baselines

This commit is contained in:
Anders Hejlsberg 2016-11-12 09:20:30 -08:00
parent 9ac7667d5c
commit 6ceab7bce7
2 changed files with 2 additions and 2 deletions

View File

@ -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"'.

View File

@ -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