mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Accept new baselines
This commit is contained in:
+3
-3
@@ -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
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user