2014-07-13 01:04:16 +02:00
|
|
|
//// [concatError.ts]
|
|
|
|
|
|
|
|
var n1: number[];
|
|
|
|
/*
|
|
|
|
interface Array<T> {
|
|
|
|
concat(...items: T[][]): T[]; // Note: This overload needs to be picked for arrays of arrays, even though both are applicable
|
|
|
|
concat(...items: T[]): T[];
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
var fa: number[];
|
|
|
|
|
|
|
|
fa = fa.concat([0]);
|
|
|
|
fa = fa.concat(0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
declare class C<T> {
|
|
|
|
public m(p1: C<C<T>>): C<T>;
|
|
|
|
//public p: T;
|
|
|
|
}
|
|
|
|
|
|
|
|
var c: C<number>;
|
|
|
|
var cc: C<C<number>>;
|
|
|
|
|
|
|
|
c = c.m(cc);
|
|
|
|
*/
|
|
|
|
|
|
|
|
//// [concatError.js]
|
|
|
|
var n1;
|
2014-08-14 23:43:28 +02:00
|
|
|
/*
|
|
|
|
interface Array<T> {
|
|
|
|
concat(...items: T[][]): T[]; // Note: This overload needs to be picked for arrays of arrays, even though both are applicable
|
|
|
|
concat(...items: T[]): T[];
|
|
|
|
}
|
2014-08-12 00:54:12 +02:00
|
|
|
*/
|
2014-07-13 01:04:16 +02:00
|
|
|
var fa;
|
|
|
|
fa = fa.concat([0]);
|
|
|
|
fa = fa.concat(0);
|
2014-12-03 01:09:41 +01:00
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
declare class C<T> {
|
|
|
|
public m(p1: C<C<T>>): C<T>;
|
|
|
|
//public p: T;
|
|
|
|
}
|
|
|
|
|
|
|
|
var c: C<number>;
|
|
|
|
var cc: C<C<number>>;
|
|
|
|
|
|
|
|
c = c.m(cc);
|
|
|
|
var n1: number[];
|
|
|
|
/*
|
|
|
|
interface Array<T> {
|
|
|
|
concat(...items: T[][]): T[]; // Note: This overload needs to be picked for arrays of arrays, even though both are applicable
|
|
|
|
concat(...items: T[]): T[];
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
var fa: number[];
|
|
|
|
|
|
|
|
fa = fa.concat([0]);
|
|
|
|
fa = fa.concat(0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
declare class C<T> {
|
|
|
|
public m(p1: C<C<T>>): C<T>;
|
|
|
|
//public p: T;
|
|
|
|
}
|
|
|
|
|
|
|
|
var c: C<number>;
|
|
|
|
var cc: C<C<number>>;
|
|
|
|
|
|
|
|
c = c.m(cc);
|
|
|
|
|