Skip to content

Commit c7b0732

Browse files
committed
Accepting new baselines
1 parent 2eca3d5 commit c7b0732

10 files changed

+1355
-1338
lines changed

tests/baselines/reference/orderMattersForSignatureGroupIdentity.errors.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
tests/cases/compiler/orderMattersForSignatureGroupIdentity.ts(19,3): error TS2345: Argument of type '{ s: string; n: number; }' is not assignable to parameter of type '{ n: number; }'.
2+
Property 's' does not exist on type '{ n: number; }'.
13
tests/cases/compiler/orderMattersForSignatureGroupIdentity.ts(22,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'w' must be of type 'A', but here has type 'C'.
4+
tests/cases/compiler/orderMattersForSignatureGroupIdentity.ts(24,3): error TS2345: Argument of type '{ s: string; n: number; }' is not assignable to parameter of type '{ n: number; }'.
5+
Property 's' does not exist on type '{ n: number; }'.
26

37

4-
==== tests/cases/compiler/orderMattersForSignatureGroupIdentity.ts (1 errors) ====
8+
==== tests/cases/compiler/orderMattersForSignatureGroupIdentity.ts (3 errors) ====
59
interface A {
610
(x: { s: string }): string
711
(x: { n: number }): number
@@ -21,10 +25,16 @@ tests/cases/compiler/orderMattersForSignatureGroupIdentity.ts(22,5): error TS240
2125
var v: B;
2226

2327
v({ s: "", n: 0 }).toLowerCase();
28+
~~~~~~~~~~~~~~~
29+
!!! error TS2345: Argument of type '{ s: string; n: number; }' is not assignable to parameter of type '{ n: number; }'.
30+
!!! error TS2345: Property 's' does not exist on type '{ n: number; }'.
2431

2532
var w: A;
2633
var w: C;
2734
~
2835
!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'w' must be of type 'A', but here has type 'C'.
2936

30-
w({ s: "", n: 0 }).toLowerCase();
37+
w({ s: "", n: 0 }).toLowerCase();
38+
~~~~~~~~~~~~~~~
39+
!!! error TS2345: Argument of type '{ s: string; n: number; }' is not assignable to parameter of type '{ n: number; }'.
40+
!!! error TS2345: Property 's' does not exist on type '{ n: number; }'.

tests/baselines/reference/taggedTemplateStringsTypeArgumentInference.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ tests/cases/conformance/es6/templates/taggedTemplateStringsTypeArgumentInference
22
Type argument candidate 'string' is not a valid type argument because it is not a supertype of candidate 'number'.
33
tests/cases/conformance/es6/templates/taggedTemplateStringsTypeArgumentInference.ts(77,11): error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
44
Type argument candidate '{ x: number; z: Date; }' is not a valid type argument because it is not a supertype of candidate '{ x: number; y: string; }'.
5-
Property 'z' is missing in type '{ x: number; y: string; }'.
5+
Property 'y' does not exist on type '{ x: number; z: Date; }'.
66

77

88
==== tests/cases/conformance/es6/templates/taggedTemplateStringsTypeArgumentInference.ts (2 errors) ====
@@ -89,7 +89,7 @@ tests/cases/conformance/es6/templates/taggedTemplateStringsTypeArgumentInference
8989
~~~~~~~~~~~~~
9090
!!! error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
9191
!!! error TS2453: Type argument candidate '{ x: number; z: Date; }' is not a valid type argument because it is not a supertype of candidate '{ x: number; y: string; }'.
92-
!!! error TS2453: Property 'z' is missing in type '{ x: number; y: string; }'.
92+
!!! error TS2453: Property 'y' does not exist on type '{ x: number; z: Date; }'.
9393
var a9e: {};
9494

9595
// Generic tag with multiple parameters of generic type passed arguments with a single best common type

tests/baselines/reference/taggedTemplateStringsTypeArgumentInferenceES6.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ tests/cases/conformance/es6/templates/taggedTemplateStringsTypeArgumentInference
22
Type argument candidate 'string' is not a valid type argument because it is not a supertype of candidate 'number'.
33
tests/cases/conformance/es6/templates/taggedTemplateStringsTypeArgumentInferenceES6.ts(76,11): error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
44
Type argument candidate '{ x: number; z: Date; }' is not a valid type argument because it is not a supertype of candidate '{ x: number; y: string; }'.
5-
Property 'z' is missing in type '{ x: number; y: string; }'.
5+
Property 'y' does not exist on type '{ x: number; z: Date; }'.
66

77

88
==== tests/cases/conformance/es6/templates/taggedTemplateStringsTypeArgumentInferenceES6.ts (2 errors) ====
@@ -88,7 +88,7 @@ tests/cases/conformance/es6/templates/taggedTemplateStringsTypeArgumentInference
8888
~~~~~~~~~~~~~
8989
!!! error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
9090
!!! error TS2453: Type argument candidate '{ x: number; z: Date; }' is not a valid type argument because it is not a supertype of candidate '{ x: number; y: string; }'.
91-
!!! error TS2453: Property 'z' is missing in type '{ x: number; y: string; }'.
91+
!!! error TS2453: Property 'y' does not exist on type '{ x: number; z: Date; }'.
9292
var a9e: {};
9393

9494
// Generic tag with multiple parameters of generic type passed arguments with a single best common type

tests/baselines/reference/typeArgInference2.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
tests/cases/compiler/typeArgInference2.ts(12,10): error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
22
Type argument candidate '{ name: string; a: number; }' is not a valid type argument because it is not a supertype of candidate '{ name: string; b: number; }'.
3-
Property 'a' is missing in type '{ name: string; b: number; }'.
3+
Property 'b' does not exist on type '{ name: string; a: number; }'.
44

55

66
==== tests/cases/compiler/typeArgInference2.ts (1 errors) ====
@@ -19,4 +19,4 @@ tests/cases/compiler/typeArgInference2.ts(12,10): error TS2453: The type argumen
1919
~~~
2020
!!! error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
2121
!!! error TS2453: Type argument candidate '{ name: string; a: number; }' is not a valid type argument because it is not a supertype of candidate '{ name: string; b: number; }'.
22-
!!! error TS2453: Property 'a' is missing in type '{ name: string; b: number; }'.
22+
!!! error TS2453: Property 'b' does not exist on type '{ name: string; a: number; }'.

tests/baselines/reference/typeArgumentInference.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ tests/cases/conformance/expressions/functionCalls/typeArgumentInference.ts(68,11
22
Type argument candidate 'string' is not a valid type argument because it is not a supertype of candidate 'number'.
33
tests/cases/conformance/expressions/functionCalls/typeArgumentInference.ts(82,11): error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
44
Type argument candidate '{ x: number; z: Date; }' is not a valid type argument because it is not a supertype of candidate '{ x: number; y: string; }'.
5-
Property 'z' is missing in type '{ x: number; y: string; }'.
5+
Property 'y' does not exist on type '{ x: number; z: Date; }'.
66
tests/cases/conformance/expressions/functionCalls/typeArgumentInference.ts(84,66): error TS2345: Argument of type '{ x: number; y: string; }' is not assignable to parameter of type 'A92'.
77
Property 'y' does not exist on type 'A92'.
88

@@ -96,7 +96,7 @@ tests/cases/conformance/expressions/functionCalls/typeArgumentInference.ts(84,66
9696
~~~~~~~~~~~~~
9797
!!! error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
9898
!!! error TS2453: Type argument candidate '{ x: number; z: Date; }' is not a valid type argument because it is not a supertype of candidate '{ x: number; y: string; }'.
99-
!!! error TS2453: Property 'z' is missing in type '{ x: number; y: string; }'.
99+
!!! error TS2453: Property 'y' does not exist on type '{ x: number; z: Date; }'.
100100
var a9e: {};
101101
var a9f = someGenerics9<A92>(undefined, { x: 6, z: new Date() }, { x: 6, y: '' });
102102
~~~~~~~~~~~~~~~

tests/baselines/reference/typeArgumentInferenceConstructSignatures.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceConstruct
1414
tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceConstructSignatures.ts(118,9): error TS2304: Cannot find name 'Window'.
1515
tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceConstructSignatures.ts(120,15): error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
1616
Type argument candidate '{ x: number; z: any; }' is not a valid type argument because it is not a supertype of candidate '{ x: number; y: string; }'.
17-
Property 'z' is missing in type '{ x: number; y: string; }'.
17+
Property 'y' does not exist on type '{ x: number; z: any; }'.
1818
tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceConstructSignatures.ts(120,51): error TS2304: Cannot find name 'window'.
1919
tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceConstructSignatures.ts(122,56): error TS2304: Cannot find name 'window'.
2020
tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceConstructSignatures.ts(122,66): error TS2345: Argument of type '{ x: number; y: string; }' is not assignable to parameter of type 'A92'.
@@ -166,7 +166,7 @@ tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceConstruct
166166
~~~~~~~~~~~~~
167167
!!! error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
168168
!!! error TS2453: Type argument candidate '{ x: number; z: any; }' is not a valid type argument because it is not a supertype of candidate '{ x: number; y: string; }'.
169-
!!! error TS2453: Property 'z' is missing in type '{ x: number; y: string; }'.
169+
!!! error TS2453: Property 'y' does not exist on type '{ x: number; z: any; }'.
170170
~~~~~~
171171
!!! error TS2304: Cannot find name 'window'.
172172
var a9e: {};

tests/baselines/reference/typeArgumentInferenceWithConstraints.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithConst
1919
tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithConstraints.ts(85,9): error TS2304: Cannot find name 'Window'.
2020
tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithConstraints.ts(87,11): error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
2121
Type argument candidate '{ x: number; z: any; }' is not a valid type argument because it is not a supertype of candidate '{ x: number; y: string; }'.
22-
Property 'z' is missing in type '{ x: number; y: string; }'.
22+
Property 'y' does not exist on type '{ x: number; z: any; }'.
2323
tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithConstraints.ts(87,47): error TS2304: Cannot find name 'window'.
2424
tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithConstraints.ts(89,52): error TS2304: Cannot find name 'window'.
2525
tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithConstraints.ts(89,62): error TS2345: Argument of type '{ x: number; y: string; }' is not assignable to parameter of type 'A92'.
@@ -148,7 +148,7 @@ tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithConst
148148
~~~~~~~~~~~~~
149149
!!! error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
150150
!!! error TS2453: Type argument candidate '{ x: number; z: any; }' is not a valid type argument because it is not a supertype of candidate '{ x: number; y: string; }'.
151-
!!! error TS2453: Property 'z' is missing in type '{ x: number; y: string; }'.
151+
!!! error TS2453: Property 'y' does not exist on type '{ x: number; z: any; }'.
152152
~~~~~~
153153
!!! error TS2304: Cannot find name 'window'.
154154
var a9e: {};

tests/baselines/reference/underscoreTest1.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ module Underscore {
385385
evaluate?: RegExp;
386386
interpolate?: RegExp;
387387
escape?: RegExp;
388+
variable?: string;
388389
}
389390

390391
export interface Static {

0 commit comments

Comments
 (0)