From 86643902b29cee041d2bef419deb1e80ebd0f8f1 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Wed, 30 May 2018 08:17:09 -0700 Subject: [PATCH] Rename unknownType to errorType in merged code --- src/compiler/checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index b1a12937662..b21e238a729 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -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;