From 818c76c0894ca23587b951c18c87f71aa45a853e Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 23 Feb 2016 20:18:48 -0800 Subject: [PATCH] Accepted baselines. --- .../errorMessagesIntersectionTypes03.errors.txt | 10 ---------- .../errorMessagesIntersectionTypes04.errors.txt | 8 -------- 2 files changed, 18 deletions(-) diff --git a/tests/baselines/reference/errorMessagesIntersectionTypes03.errors.txt b/tests/baselines/reference/errorMessagesIntersectionTypes03.errors.txt index 87b2020a421..e37ff82aa7b 100644 --- a/tests/baselines/reference/errorMessagesIntersectionTypes03.errors.txt +++ b/tests/baselines/reference/errorMessagesIntersectionTypes03.errors.txt @@ -1,13 +1,8 @@ tests/cases/compiler/errorMessagesIntersectionTypes03.ts(17,5): error TS2322: Type 'A & B' is not assignable to type 'T'. - Type 'B' is not assignable to type 'T'. tests/cases/compiler/errorMessagesIntersectionTypes03.ts(18,5): error TS2322: Type 'A & B' is not assignable to type 'U'. - Type 'B' is not assignable to type 'U'. tests/cases/compiler/errorMessagesIntersectionTypes03.ts(19,5): error TS2322: Type 'A & B' is not assignable to type 'V'. - Type 'B' is not assignable to type 'V'. tests/cases/compiler/errorMessagesIntersectionTypes03.ts(22,5): error TS2322: Type 'T & B' is not assignable to type 'U'. - Type 'B' is not assignable to type 'U'. tests/cases/compiler/errorMessagesIntersectionTypes03.ts(23,5): error TS2322: Type 'T & B' is not assignable to type 'V'. - Type 'B' is not assignable to type 'V'. ==== tests/cases/compiler/errorMessagesIntersectionTypes03.ts (5 errors) ==== @@ -30,23 +25,18 @@ tests/cases/compiler/errorMessagesIntersectionTypes03.ts(23,5): error TS2322: Ty t = a_and_b; ~ !!! error TS2322: Type 'A & B' is not assignable to type 'T'. -!!! error TS2322: Type 'B' is not assignable to type 'T'. u = a_and_b; ~ !!! error TS2322: Type 'A & B' is not assignable to type 'U'. -!!! error TS2322: Type 'B' is not assignable to type 'U'. v = a_and_b; ~ !!! error TS2322: Type 'A & B' is not assignable to type 'V'. -!!! error TS2322: Type 'B' is not assignable to type 'V'. t = t_and_b; u = t_and_b; ~ !!! error TS2322: Type 'T & B' is not assignable to type 'U'. -!!! error TS2322: Type 'B' is not assignable to type 'U'. v = t_and_b; ~ !!! error TS2322: Type 'T & B' is not assignable to type 'V'. -!!! error TS2322: Type 'B' is not assignable to type 'V'. } \ No newline at end of file diff --git a/tests/baselines/reference/errorMessagesIntersectionTypes04.errors.txt b/tests/baselines/reference/errorMessagesIntersectionTypes04.errors.txt index c413c3b2219..7582c68ecec 100644 --- a/tests/baselines/reference/errorMessagesIntersectionTypes04.errors.txt +++ b/tests/baselines/reference/errorMessagesIntersectionTypes04.errors.txt @@ -1,11 +1,7 @@ tests/cases/compiler/errorMessagesIntersectionTypes04.ts(17,5): error TS2322: Type 'A & B' is not assignable to type 'number'. - Type 'B' is not assignable to type 'number'. tests/cases/compiler/errorMessagesIntersectionTypes04.ts(18,5): error TS2322: Type 'A & B' is not assignable to type 'boolean'. - Type 'B' is not assignable to type 'boolean'. tests/cases/compiler/errorMessagesIntersectionTypes04.ts(19,5): error TS2322: Type 'A & B' is not assignable to type 'string'. - Type 'B' is not assignable to type 'string'. tests/cases/compiler/errorMessagesIntersectionTypes04.ts(21,5): error TS2322: Type 'number & boolean' is not assignable to type 'string'. - Type 'boolean' is not assignable to type 'string'. ==== tests/cases/compiler/errorMessagesIntersectionTypes04.ts (4 errors) ==== @@ -28,18 +24,14 @@ tests/cases/compiler/errorMessagesIntersectionTypes04.ts(21,5): error TS2322: Ty num = a_and_b; ~~~ !!! error TS2322: Type 'A & B' is not assignable to type 'number'. -!!! error TS2322: Type 'B' is not assignable to type 'number'. bool = a_and_b; ~~~~ !!! error TS2322: Type 'A & B' is not assignable to type 'boolean'. -!!! error TS2322: Type 'B' is not assignable to type 'boolean'. str = a_and_b; ~~~ !!! error TS2322: Type 'A & B' is not assignable to type 'string'. -!!! error TS2322: Type 'B' is not assignable to type 'string'. str = num_and_bool; ~~~ !!! error TS2322: Type 'number & boolean' is not assignable to type 'string'. -!!! error TS2322: Type 'boolean' is not assignable to type 'string'. } \ No newline at end of file