mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-23 17:30:04 -05:00
Propagate isRestParameter through symbol instantiation (#18087)
* Add repro from #17666 * Actually use repro from issue, propegate isRestParameter on instantiation
This commit is contained in:
@@ -8168,6 +8168,9 @@ namespace ts {
|
||||
if (symbol.valueDeclaration) {
|
||||
result.valueDeclaration = symbol.valueDeclaration;
|
||||
}
|
||||
if ((symbol as TransientSymbol).isRestParameter) {
|
||||
result.isRestParameter = (symbol as TransientSymbol).isRestParameter;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user