TypeScript/tests/baselines/reference/incompatibleGenericTypes.errors.txt
Daniel Rosenwasser 6e77e2e810 Removed colons from diagnostic messages.
Also got rid of the 'terminalMessages' concept.
2014-10-28 00:48:58 -07:00

18 lines
No EOL
581 B
Text

tests/cases/compiler/incompatibleGenericTypes.ts(10,5): error TS2323: Type 'I1<boolean>' is not assignable to type 'I1<number>'.
Type 'boolean' is not assignable to type 'number'.
==== tests/cases/compiler/incompatibleGenericTypes.ts (1 errors) ====
interface I1<T> {
m1<U>(callback: (p: T) => U): I1<U>;
}
var v1: I1<boolean>;
var v2: I1<number> = v1;
~~
!!! error TS2323: Type 'I1<boolean>' is not assignable to type 'I1<number>'.
!!! error TS2323: Type 'boolean' is not assignable to type 'number'.