TypeScript/tests/cases/compiler/declarationEmitFBoundedTypeParams.ts

9 lines
159 B
TypeScript
Raw Normal View History

2015-12-10 23:09:18 +01:00
// @declaration: true
// Repro from #6040
function append<a, b extends a>(result: a[], value: b): a[] {
result.push(value);
return result;
}