Skip to content

Commit 055dbe5

Browse files
committed
Pipeline - after-rebase baseline fixes.
1 parent d44d182 commit 055dbe5

9 files changed

+7
-144
lines changed

tests/baselines/reference/anyAsGenericFunctionCall.errors.txt

Lines changed: 0 additions & 25 deletions
This file was deleted.

tests/baselines/reference/callNonGenericFunctionWithTypeArguments.errors.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ tests/cases/conformance/types/typeParameters/typeArgumentLists/callNonGenericFun
55
tests/cases/conformance/types/typeParameters/typeArgumentLists/callNonGenericFunctionWithTypeArguments.ts(24,14): error TS2558: Expected 0 type arguments, but got 1.
66
tests/cases/conformance/types/typeParameters/typeArgumentLists/callNonGenericFunctionWithTypeArguments.ts(31,23): error TS2558: Expected 0 type arguments, but got 1.
77
tests/cases/conformance/types/typeParameters/typeArgumentLists/callNonGenericFunctionWithTypeArguments.ts(37,15): error TS2558: Expected 0 type arguments, but got 1.
8-
tests/cases/conformance/types/typeParameters/typeArgumentLists/callNonGenericFunctionWithTypeArguments.ts(40,10): error TS2347: Untyped function calls may not accept type arguments.
9-
tests/cases/conformance/types/typeParameters/typeArgumentLists/callNonGenericFunctionWithTypeArguments.ts(43,10): error TS2347: Untyped function calls may not accept type arguments.
108

119

12-
==== tests/cases/conformance/types/typeParameters/typeArgumentLists/callNonGenericFunctionWithTypeArguments.ts (9 errors) ====
10+
==== tests/cases/conformance/types/typeParameters/typeArgumentLists/callNonGenericFunctionWithTypeArguments.ts (7 errors) ====
1311
// it is always illegal to provide type arguments to a non-generic function
1412
// all invocations here are illegal
1513

@@ -64,10 +62,6 @@ tests/cases/conformance/types/typeParameters/typeArgumentLists/callNonGenericFun
6462

6563
var a;
6664
var r8 = a<number>();
67-
~~~~~~~~~~~
68-
!!! error TS2347: Untyped function calls may not accept type arguments.
6965

7066
var a2: any;
71-
var r8 = a2<number>();
72-
~~~~~~~~~~~~
73-
!!! error TS2347: Untyped function calls may not accept type arguments.
67+
var r8 = a2<number>();

tests/baselines/reference/crashIntypeCheckInvocationExpression.errors.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
tests/cases/compiler/crashIntypeCheckInvocationExpression.ts(6,28): error TS2304: Cannot find name 'task'.
22
tests/cases/compiler/crashIntypeCheckInvocationExpression.ts(8,18): error TS2304: Cannot find name 'path'.
3-
tests/cases/compiler/crashIntypeCheckInvocationExpression.ts(9,19): error TS2347: Untyped function calls may not accept type arguments.
43
tests/cases/compiler/crashIntypeCheckInvocationExpression.ts(10,50): error TS2304: Cannot find name 'moduleType'.
54

65

7-
==== tests/cases/compiler/crashIntypeCheckInvocationExpression.ts (4 errors) ====
6+
==== tests/cases/compiler/crashIntypeCheckInvocationExpression.ts (3 errors) ====
87
var nake;
98
function doCompile<P0, P1, P2>(fileset: P0, moduleType: P1) {
109

@@ -18,8 +17,6 @@ tests/cases/compiler/crashIntypeCheckInvocationExpression.ts(10,50): error TS230
1817
~~~~
1918
!!! error TS2304: Cannot find name 'path'.
2019
fileset = nake.fileSetSync<number, number, any>(folder)
21-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22-
!!! error TS2347: Untyped function calls may not accept type arguments.
2320
return doCompile<number, number, any>(fileset, moduleType);
2421
~~~~~~~~~~
2522
!!! error TS2304: Cannot find name 'moduleType'.

tests/baselines/reference/functionCalls.errors.txt

Lines changed: 0 additions & 65 deletions
This file was deleted.

tests/baselines/reference/invokingNonGenericMethodWithTypeArguments2.errors.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

tests/baselines/reference/parserAmbiguityWithBinaryOperator4.errors.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
tests/cases/conformance/parser/ecmascript5/Generics/parserAmbiguityWithBinaryOperator4.ts(3,9): error TS2347: Untyped function calls may not accept type arguments.
21
tests/cases/conformance/parser/ecmascript5/Generics/parserAmbiguityWithBinaryOperator4.ts(3,11): error TS2749: 'b' refers to a value, but is being used as a type here. Did you mean 'typeof b'?
32
tests/cases/conformance/parser/ecmascript5/Generics/parserAmbiguityWithBinaryOperator4.ts(3,14): error TS2749: 'b' refers to a value, but is being used as a type here. Did you mean 'typeof b'?
43

54

6-
==== tests/cases/conformance/parser/ecmascript5/Generics/parserAmbiguityWithBinaryOperator4.ts (3 errors) ====
5+
==== tests/cases/conformance/parser/ecmascript5/Generics/parserAmbiguityWithBinaryOperator4.ts (2 errors) ====
76
function g() {
87
var a, b, c;
98
if (a<b, b>(c + 1)) { }
10-
~~~~~~~~~~~~~~
11-
!!! error TS2347: Untyped function calls may not accept type arguments.
129
~
1310
!!! error TS2749: 'b' refers to a value, but is being used as a type here. Did you mean 'typeof b'?
1411
~

tests/baselines/reference/taggedTemplatesWithTypeArguments2.errors.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(13,30): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
2-
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(15,11): error TS2347: Untyped function calls may not accept type arguments.
3-
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(17,11): error TS2347: Untyped function calls may not accept type arguments.
42
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(17,30): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
53
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(35,5): error TS2377: Constructors for derived classes must contain a 'super' call.
64
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(36,9): error TS17011: 'super' must be called before accessing a property of 'super' in the constructor of a derived class.
75
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(36,14): error TS2754: 'super' may not use type arguments.
86
tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(36,34): error TS1034: 'super' must be followed by an argument list or member access.
97

108

11-
==== tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts (8 errors) ====
9+
==== tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts (6 errors) ====
1210
export interface SomethingTaggable {
1311
<T>(t: TemplateStringsArray, ...args: T[]): SomethingNewable;
1412
}
@@ -26,12 +24,8 @@ tests/cases/conformance/es6/templates/taggedTemplatesWithTypeArguments2.ts(36,34
2624
!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
2725

2826
const c = new tag<number> `${100} ${200}`<string>("hello", "world");
29-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30-
!!! error TS2347: Untyped function calls may not accept type arguments.
3127

3228
const d = new tag<number> `${"hello"} ${"world"}`<string>(100, 200);
33-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
34-
!!! error TS2347: Untyped function calls may not accept type arguments.
3529
~~~~~~~
3630
!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
3731

tests/baselines/reference/untypedFunctionCallsWithTypeParameters1.errors.txt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,24 @@
11
tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts(3,12): error TS2558: Expected 0 type arguments, but got 1.
2-
tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts(5,10): error TS2347: Untyped function calls may not accept type arguments.
3-
tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts(8,10): error TS2347: Untyped function calls may not accept type arguments.
42
tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts(10,7): error TS2420: Class 'C' incorrectly implements interface 'Function'.
53
Type 'C' is missing the following properties from type 'Function': apply, call, bind
64
tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts(18,10): error TS2349: This expression is not callable.
75
Type 'C' has no call signatures.
8-
tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts(22,10): error TS2347: Untyped function calls may not accept type arguments.
96
tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts(28,12): error TS2558: Expected 0 type arguments, but got 1.
107
tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts(35,4): error TS2558: Expected 0 type arguments, but got 1.
118
tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts(41,4): error TS2558: Expected 0 type arguments, but got 1.
129

1310

14-
==== tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts (9 errors) ====
11+
==== tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts (6 errors) ====
1512
// none of these function calls should be allowed
1613
var x = function () { return; };
1714
var r1 = x<number>();
1815
~~~~~~
1916
!!! error TS2558: Expected 0 type arguments, but got 1.
2017
var y: any = x;
2118
var r2 = y<string>();
22-
~~~~~~~~~~~
23-
!!! error TS2347: Untyped function calls may not accept type arguments.
2419

2520
var c: Function;
2621
var r3 = c<number>(); // should be an error
27-
~~~~~~~~~~~
28-
!!! error TS2347: Untyped function calls may not accept type arguments.
2922

3023
class C implements Function {
3124
~
@@ -46,8 +39,6 @@ tests/cases/compiler/untypedFunctionCallsWithTypeParameters1.ts(41,4): error TS2
4639
class C2 extends Function { } // error
4740
var c3: C2;
4841
var r5 = c3<number>(); // error
49-
~~~~~~~~~~~~
50-
!!! error TS2347: Untyped function calls may not accept type arguments.
5142

5243
interface I {
5344
(number): number;

tests/baselines/reference/unusedInvalidTypeArguments.errors.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/call.ts(1,21): error TS2307: Cannot find module 'unknown' or its corresponding type declarations.
2-
/callAny.ts(3,1): error TS2347: Untyped function calls may not accept type arguments.
3-
/callAny.ts(4,1): error TS2347: Untyped function calls may not accept type arguments.
42
/callAny.ts(4,3): error TS2304: Cannot find name 'InvalidReference'.
53
/classReference.ts(4,24): error TS2315: Type 'C' is not generic.
64
/interface.ts(1,21): error TS2307: Cannot find module 'unknown' or its corresponding type declarations.
@@ -48,15 +46,11 @@
4846
type T = number;
4947
new Foo<T>();
5048

51-
==== /callAny.ts (3 errors) ====
49+
==== /callAny.ts (1 errors) ====
5250
declare var g: any;
5351
type U = number;
5452
g<U>();
55-
~~~~~~
56-
!!! error TS2347: Untyped function calls may not accept type arguments.
5753
g<InvalidReference>(); // Should get error for type argument
58-
~~~~~~~~~~~~~~~~~~~~~
59-
!!! error TS2347: Untyped function calls may not accept type arguments.
6054
~~~~~~~~~~~~~~~~
6155
!!! error TS2304: Cannot find name 'InvalidReference'.
6256

0 commit comments

Comments
 (0)