8 lines
159 B
TypeScript
8 lines
159 B
TypeScript
// @declaration: true
|
|
|
|
// Repro from #6040
|
|
|
|
function append<a, b extends a>(result: a[], value: b): a[] {
|
|
result.push(value);
|
|
return result;
|
|
}
|