Merge pull request #17314 from gcnew/checkTypeGuardConstraintConformance

Check type guard constraint conformance
This commit is contained in:
Nathan Shively-Sanders
2017-07-20 07:49:39 -07:00
committed by GitHub
4 changed files with 114 additions and 11 deletions

View File

@@ -17996,6 +17996,8 @@ namespace ts {
return;
}
checkSourceElement(node.type);
const { parameterName } = node;
if (isThisTypePredicate(typePredicate)) {
getTypeFromThisTypeNode(parameterName as ThisTypeNode);