File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -8278,7 +8278,9 @@ namespace ts {
8278
8278
const links = getNodeLinks(node);
8279
8279
if (!links.resolvedType) {
8280
8280
const checkType = getTypeFromTypeNode(node.checkType);
8281
- const outerTypeParameters = getOuterTypeParameters(node, /*includeThisTypes*/ true);
8281
+ const aliasTypeArguments = getAliasTypeArgumentsForTypeNode(node);
8282
+ const allOuterTypeParameters = getOuterTypeParameters(node, /*includeThisTypes*/ true);
8283
+ const outerTypeParameters = aliasTypeArguments ? allOuterTypeParameters : filter(allOuterTypeParameters, tp => isTypeParameterPossiblyReferenced(tp, node));
8282
8284
const root: ConditionalRoot = {
8283
8285
node,
8284
8286
checkType,
@@ -8290,7 +8292,7 @@ namespace ts {
8290
8292
outerTypeParameters,
8291
8293
instantiations: undefined,
8292
8294
aliasSymbol: getAliasSymbolForTypeNode(node),
8293
- aliasTypeArguments: getAliasTypeArgumentsForTypeNode(node)
8295
+ aliasTypeArguments
8294
8296
};
8295
8297
links.resolvedType = getConditionalType(root, /*mapper*/ undefined);
8296
8298
if (outerTypeParameters) {
You can’t perform that action at this time.
0 commit comments