mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-12 20:01:02 -05:00
Accept new baselines
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
tests/cases/compiler/errorMessagesIntersectionTypes02.ts(14,5): error TS2322: Type '{ fooProp: string; } & Bar' is not assignable to type 'FooBar'.
|
||||
tests/cases/compiler/errorMessagesIntersectionTypes02.ts(14,5): error TS2322: Type '{ fooProp: "frizzlebizzle"; } & Bar' is not assignable to type 'FooBar'.
|
||||
Types of property 'fooProp' are incompatible.
|
||||
Type 'string' is not assignable to type '"hello" | "world"'.
|
||||
Type '"frizzlebizzle"' is not assignable to type '"hello" | "world"'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/errorMessagesIntersectionTypes02.ts (1 errors) ====
|
||||
@@ -19,8 +19,8 @@ tests/cases/compiler/errorMessagesIntersectionTypes02.ts(14,5): error TS2322: Ty
|
||||
|
||||
let fooBar: FooBar = mixBar({
|
||||
~~~~~~
|
||||
!!! error TS2322: Type '{ fooProp: string; } & Bar' is not assignable to type 'FooBar'.
|
||||
!!! error TS2322: Type '{ fooProp: "frizzlebizzle"; } & Bar' is not assignable to type 'FooBar'.
|
||||
!!! error TS2322: Types of property 'fooProp' are incompatible.
|
||||
!!! error TS2322: Type 'string' is not assignable to type '"hello" | "world"'.
|
||||
!!! error TS2322: Type '"frizzlebizzle"' is not assignable to type '"hello" | "world"'.
|
||||
fooProp: "frizzlebizzle"
|
||||
});
|
||||
@@ -18,12 +18,12 @@ declare function mixBar<T>(obj: T): T & Bar;
|
||||
|
||||
let fooBar: FooBar = mixBar({
|
||||
>fooBar : FooBar
|
||||
>mixBar({ fooProp: "frizzlebizzle"}) : { fooProp: string; } & Bar
|
||||
>mixBar({ fooProp: "frizzlebizzle"}) : { fooProp: "frizzlebizzle"; } & Bar
|
||||
>mixBar : <T>(obj: T) => T & Bar
|
||||
>{ fooProp: "frizzlebizzle"} : { fooProp: string; }
|
||||
>{ fooProp: "frizzlebizzle"} : { fooProp: "frizzlebizzle"; }
|
||||
|
||||
fooProp: "frizzlebizzle"
|
||||
>fooProp : string
|
||||
>fooProp : "frizzlebizzle"
|
||||
>"frizzlebizzle" : "frizzlebizzle"
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user