From 661c2778eed26a6ebb411c359d37b2925537652b Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Mon, 12 Sep 2016 10:07:21 -0700 Subject: [PATCH] Fix lint --- src/compiler/checker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 3a8016f95f4..f2fbceb277a 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -6419,9 +6419,9 @@ namespace ts { } if (source.flags & TypeFlags.Enum) { // 1. look through the target union for a literal whose base type is related to the source - let lit = find((target).types, t => t.flags & TypeFlags.EnumLiteral && isEnumTypeRelatedTo(source, (t).baseType)); + const lit = find((target).types, t => t.flags & TypeFlags.EnumLiteral && isEnumTypeRelatedTo(source, (t).baseType)); // 2. if found, the base type is only assignable to source if all its literals are in the target union. - if (lit && (result = isRelatedTo((lit as EnumLiteralType).baseType, target, false))) { + if (lit && (result = isRelatedTo((lit as EnumLiteralType).baseType, target, /*reportErrors*/ false))) { return result; } }