12 lines
352 B
TypeScript
12 lines
352 B
TypeScript
//// [arrayConcat3.ts]
|
|
// TODO: remove lib hack when https://github.com/Microsoft/TypeScript/issues/20454 is fixed
|
|
type Fn<T extends object> = <U extends T>(subj: U) => U
|
|
function doStuff<T extends object, T1 extends T>(a: Array<Fn<T>>, b: Array<Fn<T1>>) {
|
|
b.concat(a);
|
|
}
|
|
|
|
|
|
//// [arrayConcat3.js]
|
|
function doStuff(a, b) {
|
|
b.concat(a);
|
|
}
|