Rename unknownType to errorType in merged code

This commit is contained in:
Anders Hejlsberg 2018-05-30 08:17:09 -07:00
parent e22a9d6fc1
commit 86643902b2

View File

@ -10612,7 +10612,7 @@ namespace ts {
const targetTypes = (target as IntersectionType).types;
const intrinsicAttributes = getJsxType(JsxNames.IntrinsicAttributes, errorNode);
const intrinsicClassAttributes = getJsxType(JsxNames.IntrinsicClassAttributes, errorNode);
if (intrinsicAttributes !== unknownType && intrinsicClassAttributes !== unknownType &&
if (intrinsicAttributes !== errorType && intrinsicClassAttributes !== errorType &&
(contains(targetTypes, intrinsicAttributes) || contains(targetTypes, intrinsicClassAttributes))) {
// do not report top error
return result;