Fix crash with unmet generic type constraints
It looks like 93dbcf006f
didn't completely change
"(<CallExpression>node).typeArguments" to "typeArguments".
Closes #3464
Signed-off-by: David Li <jiawei.davidli@gmail.com>
This commit is contained in:
parent
49be653a25
commit
5fc4a8e4d3
1 changed files with 2 additions and 2 deletions
|
@ -7275,8 +7275,8 @@ module ts {
|
|||
checkApplicableSignature(node, args, candidateForArgumentError, assignableRelation, /*excludeArgument*/ undefined, /*reportErrors*/ true);
|
||||
}
|
||||
else if (candidateForTypeArgumentError) {
|
||||
if (!isTaggedTemplate && (<CallExpression>node).typeArguments) {
|
||||
checkTypeArguments(candidateForTypeArgumentError, (<CallExpression>node).typeArguments, [], /*reportErrors*/ true)
|
||||
if (!isTaggedTemplate && typeArguments) {
|
||||
checkTypeArguments(candidateForTypeArgumentError, typeArguments, [], /*reportErrors*/ true)
|
||||
}
|
||||
else {
|
||||
Debug.assert(resultOfFailedInference.failedTypeParameterIndex >= 0);
|
||||
|
|
Loading…
Reference in a new issue