TypeScript/tests/baselines/reference/identityForSignaturesWithTypeParametersAndAny.errors.txt
2014-07-12 17:30:19 -07:00

23 lines
1.2 KiB
Plaintext

==== tests/cases/compiler/identityForSignaturesWithTypeParametersAndAny.ts (4 errors) ====
var f: <T, U>(x: T, y: U) => T;
var f: <T, U>(x: any, y: any) => any;
var g: <T, U>(x: T, y: U) => T;
var g: <T>(x: any, y: any) => any;
~
!!! Subsequent variable declarations must have the same type. Variable 'g' must be of type '<T, U>(x: T, y: U) => T', but here has type '<T>(x: any, y: any) => any'.
var h: <T, U>(x: T, y: U) => T;
var h: (x: any, y: any) => any;
~
!!! Subsequent variable declarations must have the same type. Variable 'h' must be of type '<T, U>(x: T, y: U) => T', but here has type '(x: any, y: any) => any'.
var i: <T, U>(x: T, y: U) => T;
var i: <T, U>(x: any, y: string) => any;
~
!!! Subsequent variable declarations must have the same type. Variable 'i' must be of type '<T, U>(x: T, y: U) => T', but here has type '<T, U>(x: any, y: string) => any'.
var j: <T, U>(x: T, y: U) => T;
var j: <T, U>(x: any, y: any) => string;
~
!!! Subsequent variable declarations must have the same type. Variable 'j' must be of type '<T, U>(x: T, y: U) => T', but here has type '<T, U>(x: any, y: any) => string'.