Skip to content

Commit 96fa489

Browse files
committed
Accept new baselines
1 parent 72260d4 commit 96fa489

89 files changed

Lines changed: 281 additions & 254 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/baselines/reference/api/typescript.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6719,6 +6719,7 @@ declare namespace ts {
67196719
ContainsSpread = 2097152,
67206720
ObjectRestType = 4194304,
67216721
InstantiationExpressionType = 8388608,
6722+
InstantiatedReference = 134217728,
67226723
}
67236724
interface ObjectType extends Type {
67246725
objectFlags: ObjectFlags;

tests/baselines/reference/arrayFrom.types

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ const inputALike: ArrayLike<A> = { length: 0 };
3939
> : ^
4040

4141
const inputARand = getEither(inputA, inputALike);
42-
>inputARand : ArrayLike<A> | Iterable<A>
42+
>inputARand : Iterable<A> | ArrayLike<A>
4343
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^
44-
>getEither(inputA, inputALike) : ArrayLike<A> | Iterable<A>
44+
>getEither(inputA, inputALike) : Iterable<A> | ArrayLike<A>
4545
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^
4646
>getEither : <T>(in1: Iterable<T>, in2: ArrayLike<T>) => ArrayLike<T> | Iterable<T>
4747
> : ^ ^^ ^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -203,7 +203,7 @@ const result8: A[] = Array.from(inputARand);
203203
> : ^^^^^^^^^^^^^^^^
204204
>from : { <T>(arrayLike: ArrayLike<T>): T[]; <T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; <T>(iterable: Iterable<T> | ArrayLike<T>): T[]; <T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; }
205205
> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ ^^^
206-
>inputARand : ArrayLike<A> | Iterable<A>
206+
>inputARand : Iterable<A> | ArrayLike<A>
207207
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^
208208

209209
const result9: B[] = Array.from(inputARand, ({ a }): B => ({ b: a }));
@@ -217,7 +217,7 @@ const result9: B[] = Array.from(inputARand, ({ a }): B => ({ b: a }));
217217
> : ^^^^^^^^^^^^^^^^
218218
>from : { <T>(arrayLike: ArrayLike<T>): T[]; <T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; <T>(iterable: Iterable<T> | ArrayLike<T>): T[]; <T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; }
219219
> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ ^^^
220-
>inputARand : ArrayLike<A> | Iterable<A>
220+
>inputARand : Iterable<A> | ArrayLike<A>
221221
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^
222222
>({ a }): B => ({ b: a }) : ({ a }: A) => B
223223
> : ^ ^^^^^^^^

tests/baselines/reference/arrayLiterals3.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ var temp2: [number[], string[]] = [[1, 2, 3], ["hello", "string"]];
9797

9898
interface tup {
9999
0: number[]|string[];
100-
>0 : number[] | string[]
100+
>0 : string[] | number[]
101101
> : ^^^^^^^^^^^^^^^^^^^
102102

103103
1: number[]|string[];
104-
>1 : number[] | string[]
104+
>1 : string[] | number[]
105105
> : ^^^^^^^^^^^^^^^^^^^
106106
}
107107
interface myArray extends Array<Number> { }
@@ -111,7 +111,7 @@ var c0: tup = [...temp2]; // Error
111111
> : ^^^
112112
>[...temp2] : [number[], string[]]
113113
> : ^^^^^^^^^^^^^^^^^^^^
114-
>...temp2 : number[] | string[]
114+
>...temp2 : string[] | number[]
115115
> : ^^^^^^^^^^^^^^^^^^^
116116
>temp2 : [number[], string[]]
117117
> : ^^^^^^^^^^^^^^^^^^^^

tests/baselines/reference/checkJsxChildrenCanBeTupleType.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//// [tests/cases/conformance/jsx/checkJsxChildrenCanBeTupleType.tsx] ////
22

33
=== Performance Stats ===
4-
Assignability cache: 2,500
4+
Assignability cache: 5,000
55
Type Count: 10,000
66
Instantiation count: 100,000
77
Symbol count: 100,000

tests/baselines/reference/checkJsxChildrenProperty16.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//// [tests/cases/conformance/jsx/checkJsxChildrenProperty16.tsx] ////
22

33
=== Performance Stats ===
4-
Assignability cache: 2,500
4+
Assignability cache: 5,000
55
Type Count: 10,000
66
Instantiation count: 100,000
7-
Symbol count: 50,000
7+
Symbol count: 100,000
88

99
=== checkJsxChildrenProperty16.tsx ===
1010
/// <reference path="react16.d.ts" />

tests/baselines/reference/checkJsxUnionSFXContextualTypeInferredCorrectly.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//// [tests/cases/conformance/jsx/checkJsxUnionSFXContextualTypeInferredCorrectly.tsx] ////
22

33
=== Performance Stats ===
4-
Assignability cache: 2,500
4+
Assignability cache: 5,000
55
Type Count: 10,000
66
Instantiation count: 100,000
7-
Symbol count: 50,000
7+
Symbol count: 100,000
88

99
=== checkJsxUnionSFXContextualTypeInferredCorrectly.tsx ===
1010
/// <reference path="react16.d.ts" />

tests/baselines/reference/circularlySimplifyingConditionalTypesNoCrash.types

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
//// [tests/cases/compiler/circularlySimplifyingConditionalTypesNoCrash.ts] ////
22

3+
=== Performance Stats ===
4+
Instantiation count: 1,000
5+
36
=== circularlySimplifyingConditionalTypesNoCrash.ts ===
47
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
58
>Omit : Omit<T, K>
@@ -68,8 +71,8 @@ declare var connect: Connect;
6871
const myStoreConnect: Connect = function(
6972
>myStoreConnect : Connect
7073
> : ^^^^^^^
71-
>function( mapStateToProps?: any, mapDispatchToProps?: any, mergeProps?: any, options: unknown = {},) { return connect( mapStateToProps, mapDispatchToProps, mergeProps, options, );} : (mapStateToProps?: any, mapDispatchToProps?: any, mergeProps?: any, options?: unknown) => InferableComponentEnhancerWithProps<TStateProps, Omit<P, Extract<keyof TStateProps, keyof P>> & TOwnProps>
72-
> : ^ ^^^ ^^ ^^^ ^^ ^^^ ^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
74+
>function( mapStateToProps?: any, mapDispatchToProps?: any, mergeProps?: any, options: unknown = {},) { return connect( mapStateToProps, mapDispatchToProps, mergeProps, options, );} : (mapStateToProps?: any, mapDispatchToProps?: any, mergeProps?: any, options?: unknown) => InferableComponentEnhancerWithProps<TStateProps, Omit<Shared<TStateProps, any>, Extract<keyof TStateProps, Extract<keyof TStateProps, string | number | symbol>>> & TOwnProps>
75+
> : ^ ^^^ ^^ ^^^ ^^ ^^^ ^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7376

7477
mapStateToProps?: any,
7578
>mapStateToProps : any
@@ -88,8 +91,8 @@ const myStoreConnect: Connect = function(
8891

8992
) {
9093
return connect(
91-
>connect( mapStateToProps, mapDispatchToProps, mergeProps, options, ) : InferableComponentEnhancerWithProps<TStateProps, Omit<P, Extract<keyof TStateProps, keyof P>> & TOwnProps>
92-
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
94+
>connect( mapStateToProps, mapDispatchToProps, mergeProps, options, ) : InferableComponentEnhancerWithProps<TStateProps, Omit<Shared<TStateProps, any>, Extract<keyof TStateProps, Extract<keyof TStateProps, string | number | symbol>>> & TOwnProps>
95+
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9396
>connect : Connect
9497
> : ^^^^^^^
9598

tests/baselines/reference/complexRecursiveCollections.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ immutable.ts(289,22): error TS2320: Interface 'Indexed<T>' cannot simultaneously
66
immutable.ts(305,22): error TS2320: Interface 'Set<T>' cannot simultaneously extend types 'Seq<never, T>' and 'Set<T>'.
77
Named property 'size' of types 'Seq<never, T>' and 'Set<T>' are not identical.
88
immutable.ts(323,20): error TS2430: Interface 'Seq<K, V>' incorrectly extends interface 'Collection<K, V>'.
9-
The types of 'map(...).size' are incompatible between these types.
9+
The types of 'map(...).filter(...).size' are incompatible between these types.
1010
Type 'number | undefined' is not assignable to type 'number'.
1111
Type 'undefined' is not assignable to type 'number'.
1212
immutable.ts(341,22): error TS2430: Interface 'Keyed<K, V>' incorrectly extends interface 'Collection<K, V>'.
@@ -382,7 +382,7 @@ immutable.ts(391,22): error TS2430: Interface 'Set<T>' incorrectly extends inter
382382
export interface Seq<K, V> extends Collection<K, V> {
383383
~~~
384384
!!! error TS2430: Interface 'Seq<K, V>' incorrectly extends interface 'Collection<K, V>'.
385-
!!! error TS2430: The types of 'map(...).size' are incompatible between these types.
385+
!!! error TS2430: The types of 'map(...).filter(...).size' are incompatible between these types.
386386
!!! error TS2430: Type 'number | undefined' is not assignable to type 'number'.
387387
!!! error TS2430: Type 'undefined' is not assignable to type 'number'.
388388
readonly size: number | undefined;

tests/baselines/reference/complexRecursiveCollections.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Identity cache: 2,500
55
Assignability cache: 5,000
66
Type Count: 50,000
7-
Instantiation count: 100,000
7+
Instantiation count: 250,000
88
Symbol count: 100,000
99

1010
=== complex.ts ===

tests/baselines/reference/contextuallyTypedJsxChildren2.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//// [tests/cases/compiler/contextuallyTypedJsxChildren2.tsx] ////
22

33
=== Performance Stats ===
4-
Assignability cache: 2,500
4+
Assignability cache: 5,000
55
Type Count: 10,000
66
Instantiation count: 100,000
7-
Symbol count: 50,000
7+
Symbol count: 100,000
88

99
=== contextuallyTypedJsxChildren2.tsx ===
1010
/// <reference path="react16.d.ts" />

0 commit comments

Comments
 (0)