Accept new baselines

This commit is contained in:
Anders Hejlsberg
2018-05-25 09:10:17 -07:00
parent 0d9dc89a78
commit 77bb4f89c0
4 changed files with 10 additions and 12 deletions
+3 -3
View File
@@ -2150,7 +2150,7 @@ declare namespace ts {
IndexedAccess = 1048576,
Conditional = 2097152,
Substitution = 4194304,
NonPrimitive = 134217728,
NonPrimitive = 8388608,
Literal = 224,
Unit = 13536,
StringOrNumberLiteral = 96,
@@ -2168,8 +2168,8 @@ declare namespace ts {
InstantiablePrimitive = 524288,
Instantiable = 7897088,
StructuredOrInstantiable = 8355840,
Narrowable = 142575359,
NotUnionOrUnit = 134283777
Narrowable = 16746239,
NotUnionOrUnit = 8454657
}
type DestructuringPattern = BindingPattern | ObjectLiteralExpression | ArrayLiteralExpression;
interface Type {
+3 -3
View File
@@ -2150,7 +2150,7 @@ declare namespace ts {
IndexedAccess = 1048576,
Conditional = 2097152,
Substitution = 4194304,
NonPrimitive = 134217728,
NonPrimitive = 8388608,
Literal = 224,
Unit = 13536,
StringOrNumberLiteral = 96,
@@ -2168,8 +2168,8 @@ declare namespace ts {
InstantiablePrimitive = 524288,
Instantiable = 7897088,
StructuredOrInstantiable = 8355840,
Narrowable = 142575359,
NotUnionOrUnit = 134283777
Narrowable = 16746239,
NotUnionOrUnit = 8454657
}
type DestructuringPattern = BindingPattern | ObjectLiteralExpression | ArrayLiteralExpression;
interface Type {
@@ -1,7 +1,6 @@
tests/cases/conformance/types/nonPrimitive/nonPrimitiveUnionIntersection.ts(1,5): error TS2322: Type '""' is not assignable to type 'object & string'.
Type '""' is not assignable to type 'object'.
tests/cases/conformance/types/nonPrimitive/nonPrimitiveUnionIntersection.ts(3,5): error TS2322: Type '123' is not assignable to type 'object & {}'.
Type '123' is not assignable to type 'object'.
tests/cases/conformance/types/nonPrimitive/nonPrimitiveUnionIntersection.ts(3,5): error TS2322: Type '123' is not assignable to type 'object'.
tests/cases/conformance/types/nonPrimitive/nonPrimitiveUnionIntersection.ts(4,1): error TS2322: Type 'string' is not assignable to type 'object & string'.
Type 'string' is not assignable to type 'object'.
tests/cases/conformance/types/nonPrimitive/nonPrimitiveUnionIntersection.ts(8,38): error TS2322: Type '{ bar: string; }' is not assignable to type 'object & { err: string; }'.
@@ -16,8 +15,7 @@ tests/cases/conformance/types/nonPrimitive/nonPrimitiveUnionIntersection.ts(8,38
var b: object | string = ""; // ok
var c: object & {} = 123; // error
~
!!! error TS2322: Type '123' is not assignable to type 'object & {}'.
!!! error TS2322: Type '123' is not assignable to type 'object'.
!!! error TS2322: Type '123' is not assignable to type 'object'.
a = b; // error
~
!!! error TS2322: Type 'string' is not assignable to type 'object & string'.
@@ -8,7 +8,7 @@ var b: object | string = ""; // ok
>"" : ""
var c: object & {} = 123; // error
>c : object & {}
>c : object
>123 : 123
a = b; // error
@@ -22,7 +22,7 @@ b = a; // ok
>a : object & string
const foo: object & {} = {bar: 'bar'}; // ok
>foo : object & {}
>foo : object
>{bar: 'bar'} : { bar: string; }
>bar : string
>'bar' : "bar"