Skip to content

Commit a133684

Browse files
committed
Modifying test
1 parent a0f4478 commit a133684

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/cases/conformance/types/specifyingTypes/typeQueries/recursiveTypesWithTypeof.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
// None of these declarations should have any errors!
2-
// Using typeof directly, these should be any
1+
// The following are errors because of circular references
32
var c: typeof c;
43
var c: any;
54
var d: typeof e;
65
var d: any;
76
var e: typeof d;
87
var e: any;
98

10-
// In type arguments, these should be any
119
interface Foo<T> { }
1210
var f: Array<typeof f>;
1311
var f: any;
@@ -16,6 +14,7 @@ var f2: any;
1614
var f3: Foo<typeof f3>[];
1715
var f3: any;
1816

17+
// None of these declarations should have any errors!
1918
// Truly recursive types
2019
var g: { x: typeof g; };
2120
var g: typeof g.x;
@@ -48,6 +47,6 @@ var hy2 = hy2.x[0];
4847

4948
interface Foo2<T, U> { }
5049

51-
// This one should be any because the first type argument is not contained inside a type literal
50+
// This one should be an error because the first type argument is not contained inside a type literal
5251
var hy3: Foo2<typeof hy3, { x: typeof hy3 }>;
5352
var hy3: any;

0 commit comments

Comments
 (0)