mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
419 B
TypeScript
16 lines
419 B
TypeScript
//// [tests/cases/compiler/arrayConcat3.ts] ////
|
|
|
|
//// [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]
|
|
"use strict";
|
|
function doStuff(a, b) {
|
|
b.concat(a);
|
|
}
|