You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests/cases/compiler/errorElaboration.ts(12,5): error TS2345: Argument of type '() => Container<Ref<string>>' is not assignable to parameter of type '() => Container<Ref<number>>'.
3
-
Type 'Container<Ref<string>>' is not assignable to type 'Container<Ref<number>>'.
4
-
Type 'Ref<string>' is not assignable to type 'Ref<number>'.
5
-
Type 'string' is not assignable to type 'number'.
3
+
Call signature return types 'Container<Ref<string>>' and 'Container<Ref<number>>' are incompatible.
4
+
The types of 'm1.m1.m1.m2' are incompatible between these types.
5
+
Type 'Ref<Ref<Ref<Ref<string>>>>' is not assignable to type 'Ref<Ref<Ref<Ref<number>>>>'.
6
+
Type 'Ref<Ref<Ref<string>>>' is not assignable to type 'Ref<Ref<Ref<number>>>'.
7
+
Type 'Ref<Ref<string>>' is not assignable to type 'Ref<Ref<number>>'.
8
+
Type 'Ref<string>' is not assignable to type 'Ref<number>'.
9
+
Type 'string' is not assignable to type 'number'.
6
10
tests/cases/compiler/errorElaboration.ts(17,11): error TS2322: Type '"bar"' is not assignable to type '"foo"'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/objectTypeWithRecursiveWrappedProperty.errors.txt
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
tests/cases/conformance/types/typeRelationships/recursiveTypes/objectTypeWithRecursiveWrappedProperty.ts(13,1): error TS2322: Type 'List<string>' is not assignable to type 'List<number>'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/objectTypeWithRecursiveWrappedProperty2.errors.txt
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
tests/cases/conformance/types/typeRelationships/recursiveTypes/objectTypeWithRecursiveWrappedProperty2.ts(13,1): error TS2322: Type 'List<string>' is not assignable to type 'List<number>'.
tests/cases/conformance/types/typeRelationships/recursiveTypes/objectTypeWithRecursiveWrappedPropertyCheckedNominally.ts(42,5): error TS2322: Type 'U' is not assignable to type 'T'.
16
16
'U' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint 'MyList<number>'.
17
17
Type 'MyList<number>' is not assignable to type 'T'.
18
-
'T' could be instantiated with an arbitrary type which could be unrelated to 'MyList<number>'.
18
+
'MyList<number>' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint 'MyList<number>'.
!!! error TS2322: Type 'U' is not assignable to type 'T'.
84
84
!!! error TS2322: 'U' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint 'MyList<number>'.
85
85
!!! error TS2322: Type 'MyList<number>' is not assignable to type 'T'.
86
-
!!! error TS2322: 'T' could be instantiated with an arbitrary type which could be unrelated to 'MyList<number>'.
86
+
!!! error TS2322: 'MyList<number>' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint 'MyList<number>'.
87
87
u = t; // was error, ok after constraint made illegal, doesn't matter
Copy file name to clipboardExpand all lines: tests/baselines/reference/privateNamesInGenericClasses.errors.txt
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,10 @@
1
1
tests/cases/conformance/classes/members/privateNames/privateNamesInGenericClasses.ts(10,3): error TS18013: Property '#foo' is not accessible outside class 'C' because it has a private identifier.
2
2
tests/cases/conformance/classes/members/privateNames/privateNamesInGenericClasses.ts(11,1): error TS2322: Type 'C<string>' is not assignable to type 'C<number>'.
3
-
Type 'string' is not assignable to type 'number'.
3
+
Types of property '#foo' are incompatible.
4
+
Type 'string' is not assignable to type 'number'.
4
5
tests/cases/conformance/classes/members/privateNames/privateNamesInGenericClasses.ts(12,1): error TS2322: Type 'C<number>' is not assignable to type 'C<string>'.
tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(8,12): error TS2504: Type 'Promise<number[]>' must have a '[Symbol.asyncIterator]()' method that returns an async iterator.
3
3
tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(10,7): error TS2322: Type '() => AsyncGenerator<string, void, undefined>' is not assignable to type '() => AsyncIterableIterator<number>'.
4
4
Call signature return types 'AsyncGenerator<string, void, undefined>' and 'AsyncIterableIterator<number>' are incompatible.
5
-
The types returned by 'next(...)' are incompatible between these types.
6
-
Type 'Promise<IteratorResult<string, void>>' is not assignable to type 'Promise<IteratorResult<number, any>>'.
7
-
Type 'IteratorResult<string, void>' is not assignable to type 'IteratorResult<number, any>'.
8
-
Type 'IteratorYieldResult<string>' is not assignable to type 'IteratorResult<number, any>'.
9
-
Type 'IteratorYieldResult<string>' is not assignable to type 'IteratorYieldResult<number>'.
10
-
Type 'string' is not assignable to type 'number'.
5
+
The types of 'next(...).then' are incompatible between these types.
Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible.
8
+
Types of parameters 'value' and 'value' are incompatible.
9
+
Type 'IteratorResult<string, void>' is not assignable to type 'IteratorResult<number, any>'.
10
+
Type 'IteratorYieldResult<string>' is not assignable to type 'IteratorResult<number, any>'.
11
+
Type 'IteratorYieldResult<string>' is not assignable to type 'IteratorYieldResult<number>'.
12
+
Type 'string' is not assignable to type 'number'.
11
13
tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(13,7): error TS2322: Type '() => AsyncGenerator<string, void, undefined>' is not assignable to type '() => AsyncIterableIterator<number>'.
12
14
Type 'AsyncGenerator<string, void, undefined>' is not assignable to type 'AsyncIterableIterator<number>'.
13
15
tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(16,7): error TS2322: Type '() => AsyncGenerator<string, void, unknown>' is not assignable to type '() => AsyncIterableIterator<number>'.
0 commit comments