From e38252d7edea28c207a6d17946ae8652fbe17166 Mon Sep 17 00:00:00 2001 From: Kanchalai Tanglertsampan Date: Thu, 6 Oct 2016 15:18:55 -0700 Subject: [PATCH] Fix spelling --- 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 53911c36ed6..82c8ce35c9a 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -2167,7 +2167,7 @@ namespace ts { } else if (!(flags & TypeFormatFlags.InTypeAlias) && ((type.flags & TypeFlags.Anonymous && !(type).target) || type.flags & TypeFlags.UnionOrIntersection) && type.aliasSymbol && isSymbolAccessible(type.aliasSymbol, enclosingDeclaration, SymbolFlags.Type, /*shouldComputeAliasesToMakeVisible*/ false).accessibility === SymbolAccessibility.Accessible) { - // We emit inferred type as type-alias at the current localtion if all the following is true + // We emit inferred type as type-alias at the current location if all the following is true // the input type is has alias symbol that is accessible // the input type is a union, intersection or anonymous type that is fully instantiated (if not we want to keep dive into) // e.g.: export type Bar = () => [X, Y];