Skip to content

Commit d0e5269

Browse files
committed
Accepting new baselines
1 parent 2792614 commit d0e5269

6 files changed

+42
-6
lines changed

tests/baselines/reference/directDependenceBetweenTypeAliases.errors.txt

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,36 @@
11
tests/cases/conformance/types/typeAliases/directDependenceBetweenTypeAliases.ts(4,6): error TS2456: Type alias 'T0' circularly references itself.
2+
tests/cases/conformance/types/typeAliases/directDependenceBetweenTypeAliases.ts(5,6): error TS2456: Type alias 'T0_1' circularly references itself.
23
tests/cases/conformance/types/typeAliases/directDependenceBetweenTypeAliases.ts(6,6): error TS2456: Type alias 'T0_2' circularly references itself.
4+
tests/cases/conformance/types/typeAliases/directDependenceBetweenTypeAliases.ts(7,6): error TS2456: Type alias 'T0_3' circularly references itself.
35
tests/cases/conformance/types/typeAliases/directDependenceBetweenTypeAliases.ts(11,6): error TS2456: Type alias 'T1' circularly references itself.
46
tests/cases/conformance/types/typeAliases/directDependenceBetweenTypeAliases.ts(14,6): error TS2456: Type alias 'T2' circularly references itself.
57
tests/cases/conformance/types/typeAliases/directDependenceBetweenTypeAliases.ts(16,6): error TS2456: Type alias 'T2_1' circularly references itself.
68
tests/cases/conformance/types/typeAliases/directDependenceBetweenTypeAliases.ts(19,6): error TS2456: Type alias 'T3' circularly references itself.
79
tests/cases/conformance/types/typeAliases/directDependenceBetweenTypeAliases.ts(22,6): error TS2456: Type alias 'T4' circularly references itself.
10+
tests/cases/conformance/types/typeAliases/directDependenceBetweenTypeAliases.ts(25,5): error TS2502: 'x' is referenced directly or indirectly in its own type annotation.
811
tests/cases/conformance/types/typeAliases/directDependenceBetweenTypeAliases.ts(26,6): error TS2456: Type alias 'T5' circularly references itself.
12+
tests/cases/conformance/types/typeAliases/directDependenceBetweenTypeAliases.ts(29,6): error TS2456: Type alias 'T6' circularly references itself.
913
tests/cases/conformance/types/typeAliases/directDependenceBetweenTypeAliases.ts(30,6): error TS2456: Type alias 'T7' circularly references itself.
14+
tests/cases/conformance/types/typeAliases/directDependenceBetweenTypeAliases.ts(31,5): error TS2502: 'yy' is referenced directly or indirectly in its own type annotation.
15+
tests/cases/conformance/types/typeAliases/directDependenceBetweenTypeAliases.ts(32,6): error TS2456: Type alias 'T8' circularly references itself.
1016

1117

12-
==== tests/cases/conformance/types/typeAliases/directDependenceBetweenTypeAliases.ts (9 errors) ====
18+
==== tests/cases/conformance/types/typeAliases/directDependenceBetweenTypeAliases.ts (15 errors) ====
1319
// It is an error for the type specified in a type alias to depend on that type alias
1420

1521
// A type alias directly depends on the type it aliases.
1622
type T0 = T0
1723
~~
1824
!!! error TS2456: Type alias 'T0' circularly references itself.
1925
type T0_1 = T0_2
26+
~~~~
27+
!!! error TS2456: Type alias 'T0_1' circularly references itself.
2028
type T0_2 = T0_3
2129
~~~~
2230
!!! error TS2456: Type alias 'T0_2' circularly references itself.
2331
type T0_3 = T0_1
32+
~~~~
33+
!!! error TS2456: Type alias 'T0_3' circularly references itself.
2434

2535
// A type reference directly depends on the referenced type and each of the type arguments, if any.
2636
interface I<T> {}
@@ -49,17 +59,25 @@ tests/cases/conformance/types/typeAliases/directDependenceBetweenTypeAliases.ts(
4959

5060
// A type query directly depends on the type of the referenced entity.
5161
var x: T5[] = []
62+
~
63+
!!! error TS2502: 'x' is referenced directly or indirectly in its own type annotation.
5264
type T5 = typeof x
5365
~~
5466
!!! error TS2456: Type alias 'T5' circularly references itself.
5567

5668
class C1<T> {}
5769
type T6 = T7 | number
70+
~~
71+
!!! error TS2456: Type alias 'T6' circularly references itself.
5872
type T7 = typeof yy
5973
~~
6074
!!! error TS2456: Type alias 'T7' circularly references itself.
6175
var yy: [string, T8[]];
76+
~~
77+
!!! error TS2502: 'yy' is referenced directly or indirectly in its own type annotation.
6278
type T8 = C<T6>
79+
~~
80+
!!! error TS2456: Type alias 'T8' circularly references itself.
6381

6482
// legal cases
6583
type T9 = () => T9
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
tests/cases/conformance/es6/for-ofStatements/for-of33.ts(1,10): error TS7022: 'v' implicitly has type 'any' because it is does not have a type annotation and is referenced directly or indirectly in its own initializer.
2+
tests/cases/conformance/es6/for-ofStatements/for-of33.ts(4,5): error TS7023: '[Symbol.iterator]' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
23

34

4-
==== tests/cases/conformance/es6/for-ofStatements/for-of33.ts (1 errors) ====
5+
==== tests/cases/conformance/es6/for-ofStatements/for-of33.ts (2 errors) ====
56
for (var v of new StringIterator) { }
67
~
78
!!! error TS7022: 'v' implicitly has type 'any' because it is does not have a type annotation and is referenced directly or indirectly in its own initializer.
89

910
class StringIterator {
1011
[Symbol.iterator]() {
12+
~~~~~~~~~~~~~~~~~
13+
!!! error TS7023: '[Symbol.iterator]' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
1114
return v;
1215
}
1316
}

tests/baselines/reference/for-of34.errors.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
tests/cases/conformance/es6/for-ofStatements/for-of34.ts(1,10): error TS7022: 'v' implicitly has type 'any' because it is does not have a type annotation and is referenced directly or indirectly in its own initializer.
2+
tests/cases/conformance/es6/for-ofStatements/for-of34.ts(4,5): error TS7023: 'next' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
23

34

4-
==== tests/cases/conformance/es6/for-ofStatements/for-of34.ts (1 errors) ====
5+
==== tests/cases/conformance/es6/for-ofStatements/for-of34.ts (2 errors) ====
56
for (var v of new StringIterator) { }
67
~
78
!!! error TS7022: 'v' implicitly has type 'any' because it is does not have a type annotation and is referenced directly or indirectly in its own initializer.
89

910
class StringIterator {
1011
next() {
12+
~~~~
13+
!!! error TS7023: 'next' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
1114
return v;
1215
}
1316

tests/baselines/reference/for-of35.errors.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
tests/cases/conformance/es6/for-ofStatements/for-of35.ts(1,10): error TS7022: 'v' implicitly has type 'any' because it is does not have a type annotation and is referenced directly or indirectly in its own initializer.
2+
tests/cases/conformance/es6/for-ofStatements/for-of35.ts(4,5): error TS7023: 'next' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
23

34

4-
==== tests/cases/conformance/es6/for-ofStatements/for-of35.ts (1 errors) ====
5+
==== tests/cases/conformance/es6/for-ofStatements/for-of35.ts (2 errors) ====
56
for (var v of new StringIterator) { }
67
~
78
!!! error TS7022: 'v' implicitly has type 'any' because it is does not have a type annotation and is referenced directly or indirectly in its own initializer.
89

910
class StringIterator {
1011
next() {
12+
~~~~
13+
!!! error TS7023: 'next' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
1114
return {
1215
done: true,
1316
value: v

tests/baselines/reference/implicitAnyFromCircularInference.errors.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
tests/cases/compiler/implicitAnyFromCircularInference.ts(3,5): error TS2502: 'a' is referenced directly or indirectly in its own type annotation.
2+
tests/cases/compiler/implicitAnyFromCircularInference.ts(6,5): error TS2502: 'b' is referenced directly or indirectly in its own type annotation.
23
tests/cases/compiler/implicitAnyFromCircularInference.ts(7,5): error TS2502: 'c' is referenced directly or indirectly in its own type annotation.
34
tests/cases/compiler/implicitAnyFromCircularInference.ts(10,5): error TS2502: 'd' is referenced directly or indirectly in its own type annotation.
45
tests/cases/compiler/implicitAnyFromCircularInference.ts(15,10): error TS7023: 'g' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
56
tests/cases/compiler/implicitAnyFromCircularInference.ts(18,10): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
67
tests/cases/compiler/implicitAnyFromCircularInference.ts(23,10): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
78
tests/cases/compiler/implicitAnyFromCircularInference.ts(26,10): error TS7023: 'h' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
9+
tests/cases/compiler/implicitAnyFromCircularInference.ts(28,14): error TS7023: 'foo' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
810
tests/cases/compiler/implicitAnyFromCircularInference.ts(41,5): error TS7022: 's' implicitly has type 'any' because it is does not have a type annotation and is referenced directly or indirectly in its own initializer.
911
tests/cases/compiler/implicitAnyFromCircularInference.ts(46,5): error TS7023: 'x' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
1012

1113

12-
==== tests/cases/compiler/implicitAnyFromCircularInference.ts (9 errors) ====
14+
==== tests/cases/compiler/implicitAnyFromCircularInference.ts (11 errors) ====
1315

1416
// Error expected
1517
var a: typeof a;
@@ -18,6 +20,8 @@ tests/cases/compiler/implicitAnyFromCircularInference.ts(46,5): error TS7023: 'x
1820

1921
// Error expected on b or c
2022
var b: typeof c;
23+
~
24+
!!! error TS2502: 'b' is referenced directly or indirectly in its own type annotation.
2125
var c: typeof b;
2226
~
2327
!!! error TS2502: 'c' is referenced directly or indirectly in its own type annotation.
@@ -52,6 +56,8 @@ tests/cases/compiler/implicitAnyFromCircularInference.ts(46,5): error TS7023: 'x
5256
!!! error TS7023: 'h' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
5357
return foo();
5458
function foo() {
59+
~~~
60+
!!! error TS7023: 'foo' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
5561
return h() || "hello";
5662
}
5763
}

tests/baselines/reference/recursiveTypesWithTypeof.errors.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
tests/cases/conformance/types/specifyingTypes/typeQueries/recursiveTypesWithTypeof.ts(2,5): error TS2502: 'c' is referenced directly or indirectly in its own type annotation.
2+
tests/cases/conformance/types/specifyingTypes/typeQueries/recursiveTypesWithTypeof.ts(4,5): error TS2502: 'd' is referenced directly or indirectly in its own type annotation.
23
tests/cases/conformance/types/specifyingTypes/typeQueries/recursiveTypesWithTypeof.ts(6,5): error TS2502: 'e' is referenced directly or indirectly in its own type annotation.
34
tests/cases/conformance/types/specifyingTypes/typeQueries/recursiveTypesWithTypeof.ts(10,5): error TS2502: 'f' is referenced directly or indirectly in its own type annotation.
45
tests/cases/conformance/types/specifyingTypes/typeQueries/recursiveTypesWithTypeof.ts(12,5): error TS2502: 'f2' is referenced directly or indirectly in its own type annotation.
56
tests/cases/conformance/types/specifyingTypes/typeQueries/recursiveTypesWithTypeof.ts(14,5): error TS2502: 'f3' is referenced directly or indirectly in its own type annotation.
67
tests/cases/conformance/types/specifyingTypes/typeQueries/recursiveTypesWithTypeof.ts(51,5): error TS2502: 'hy3' is referenced directly or indirectly in its own type annotation.
78

89

9-
==== tests/cases/conformance/types/specifyingTypes/typeQueries/recursiveTypesWithTypeof.ts (6 errors) ====
10+
==== tests/cases/conformance/types/specifyingTypes/typeQueries/recursiveTypesWithTypeof.ts (7 errors) ====
1011
// The following are errors because of circular references
1112
var c: typeof c;
1213
~
1314
!!! error TS2502: 'c' is referenced directly or indirectly in its own type annotation.
1415
var c: any;
1516
var d: typeof e;
17+
~
18+
!!! error TS2502: 'd' is referenced directly or indirectly in its own type annotation.
1619
var d: any;
1720
var e: typeof d;
1821
~

0 commit comments

Comments
 (0)