1
1
tests/cases/compiler/genericDefaultsErrors.ts(4,26): error TS2706: Type parameter 'T' has a circular default.
2
2
tests/cases/compiler/genericDefaultsErrors.ts(5,26): error TS2706: Type parameter 'T' has a circular default.
3
3
tests/cases/compiler/genericDefaultsErrors.ts(5,33): error TS2706: Type parameter 'U' has a circular default.
4
- tests/cases/compiler/genericDefaultsErrors.ts(6,29): error TS2705: Required type parameters may not follow optional type parameters
4
+ tests/cases/compiler/genericDefaultsErrors.ts(6,29): error TS2705: Required type parameters may not follow optional type parameters.
5
5
tests/cases/compiler/genericDefaultsErrors.ts(7,41): error TS2344: Type 'number' does not satisfy the constraint 'string'.
6
6
tests/cases/compiler/genericDefaultsErrors.ts(8,59): error TS2344: Type 'T' does not satisfy the constraint 'number'.
7
7
Type 'string' is not assignable to type 'number'.
@@ -22,15 +22,15 @@ tests/cases/compiler/genericDefaultsErrors.ts(27,11): error TS2428: All declarat
22
22
tests/cases/compiler/genericDefaultsErrors.ts(29,19): error TS2706: Type parameter 'T' has a circular default.
23
23
tests/cases/compiler/genericDefaultsErrors.ts(30,19): error TS2706: Type parameter 'T' has a circular default.
24
24
tests/cases/compiler/genericDefaultsErrors.ts(30,26): error TS2706: Type parameter 'U' has a circular default.
25
- tests/cases/compiler/genericDefaultsErrors.ts(31,22): error TS2705: Required type parameters may not follow optional type parameters
25
+ tests/cases/compiler/genericDefaultsErrors.ts(31,22): error TS2705: Required type parameters may not follow optional type parameters.
26
26
tests/cases/compiler/genericDefaultsErrors.ts(32,34): error TS2344: Type 'number' does not satisfy the constraint 'string'.
27
27
tests/cases/compiler/genericDefaultsErrors.ts(33,52): error TS2344: Type 'T' does not satisfy the constraint 'number'.
28
28
Type 'string' is not assignable to type 'number'.
29
29
tests/cases/compiler/genericDefaultsErrors.ts(34,37): error TS2344: Type 'T' does not satisfy the constraint 'number'.
30
30
tests/cases/compiler/genericDefaultsErrors.ts(35,32): error TS2344: Type 'number' does not satisfy the constraint 'T'.
31
- tests/cases/compiler/genericDefaultsErrors.ts(38,15): error TS2707: Generic type 'i09<T, U, V>' requires between 2 and 3 type arguments
32
- tests/cases/compiler/genericDefaultsErrors.ts(39,15): error TS2707: Generic type 'i09<T, U, V>' requires between 2 and 3 type arguments
33
- tests/cases/compiler/genericDefaultsErrors.ts(42,15): error TS2707: Generic type 'i09<T, U, V>' requires between 2 and 3 type arguments
31
+ tests/cases/compiler/genericDefaultsErrors.ts(38,15): error TS2707: Generic type 'i09<T, U, V>' requires between 2 and 3 type arguments.
32
+ tests/cases/compiler/genericDefaultsErrors.ts(39,15): error TS2707: Generic type 'i09<T, U, V>' requires between 2 and 3 type arguments.
33
+ tests/cases/compiler/genericDefaultsErrors.ts(42,15): error TS2707: Generic type 'i09<T, U, V>' requires between 2 and 3 type arguments.
34
34
35
35
36
36
==== tests/cases/compiler/genericDefaultsErrors.ts (31 errors) ====
@@ -47,7 +47,7 @@ tests/cases/compiler/genericDefaultsErrors.ts(42,15): error TS2707: Generic type
47
47
!!! error TS2706: Type parameter 'U' has a circular default.
48
48
declare function f02<T = U, U>();
49
49
~
50
- !!! error TS2705: Required type parameters may not follow optional type parameters
50
+ !!! error TS2705: Required type parameters may not follow optional type parameters.
51
51
declare function f03<T extends string = number>(): void;
52
52
~~~~~~
53
53
!!! error TS2344: Type 'number' does not satisfy the constraint 'string'.
@@ -113,7 +113,7 @@ tests/cases/compiler/genericDefaultsErrors.ts(42,15): error TS2707: Generic type
113
113
!!! error TS2706: Type parameter 'U' has a circular default.
114
114
interface i04<T = U, U> { } // error
115
115
~
116
- !!! error TS2705: Required type parameters may not follow optional type parameters
116
+ !!! error TS2705: Required type parameters may not follow optional type parameters.
117
117
interface i05<T extends string = number> { } // error
118
118
~~~~~~
119
119
!!! error TS2344: Type 'number' does not satisfy the constraint 'string'.
@@ -131,12 +131,12 @@ tests/cases/compiler/genericDefaultsErrors.ts(42,15): error TS2707: Generic type
131
131
interface i09<T, U, V = number> { }
132
132
type i09t00 = i09; // error
133
133
~~~
134
- !!! error TS2707: Generic type 'i09<T, U, V>' requires between 2 and 3 type arguments
134
+ !!! error TS2707: Generic type 'i09<T, U, V>' requires between 2 and 3 type arguments.
135
135
type i09t01 = i09<1>; // error
136
136
~~~~~~
137
- !!! error TS2707: Generic type 'i09<T, U, V>' requires between 2 and 3 type arguments
137
+ !!! error TS2707: Generic type 'i09<T, U, V>' requires between 2 and 3 type arguments.
138
138
type i09t02 = i09<1, 2>; // ok
139
139
type i09t03 = i09<1, 2, 3>; // ok
140
140
type i09t04 = i09<1, 2, 3, 4>; // error
141
141
~~~~~~~~~~~~~~~
142
- !!! error TS2707: Generic type 'i09<T, U, V>' requires between 2 and 3 type arguments
142
+ !!! error TS2707: Generic type 'i09<T, U, V>' requires between 2 and 3 type arguments.
0 commit comments