2014-09-12 22:35:07 +02:00
tests/cases/compiler/orderMattersForSignatureGroupIdentity.ts(22,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'w' must be of type 'A', but here has type 'C'.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/orderMattersForSignatureGroupIdentity.ts (1 errors) ====
interface A {
(x: { s: string }): string
(x: { n: number }): number
}
interface B {
(x: { s: string }): string
(x: { n: number }): number
}
interface C {
(x: { n: number }): number
(x: { s: string }): string
}
var v: A;
var v: B;
v({ s: "", n: 0 }).toLowerCase();
var w: A;
var w: C;
~
2014-09-12 00:19:57 +02:00
!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'w' must be of type 'A', but here has type 'C'.
2014-07-13 01:04:16 +02:00
w({ s: "", n: 0 }).toLowerCase();