Merge pull request #17314 from gcnew/checkTypeGuardConstraintConformance

Check type guard constraint conformance
This commit is contained in:
Nathan Shively-Sanders authored and GitHub committed 2017-07-20 07:49:39 -07:00
commit 759ee288f2
4 files changed
+114 -11

No files matched your search

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