2014-07-13 01:04:16 +02:00
|
|
|
//// [overloadCrash.ts]
|
|
|
|
interface I1 {a:number; b:number;};
|
|
|
|
interface I2 {c:number; d:number;};
|
|
|
|
interface I3 {a:number; b:number; c:number; d:number;};
|
|
|
|
|
|
|
|
declare function foo(...n:I1[]);
|
|
|
|
declare function foo(n1:I2, n3:I2);
|
|
|
|
|
|
|
|
var i3:I3;
|
|
|
|
|
|
|
|
foo(i3, i3); // should not crash the compiler :)
|
|
|
|
|
|
|
|
|
|
|
|
//// [overloadCrash.js]
|
|
|
|
;
|
|
|
|
;
|
|
|
|
;
|
|
|
|
var i3;
|
2014-08-16 00:49:09 +02:00
|
|
|
foo(i3, i3); // should not crash the compiler :)
|