Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing spaces
  • Loading branch information
navya9singh committed Sep 20, 2022
1 parent ba10a0d commit 80ae43d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/checker.ts
Expand Up @@ -15589,7 +15589,7 @@ m2: ${(this.mapper2 as unknown as DebugTypeMapper).__debugToString().split("\n")
return accessFlags & AccessFlags.IncludeUndefined ? getUnionType([indexInfo.type, undefinedType]) : indexInfo.type;
}
errorIfWritingToReadonlyIndex(indexInfo);
// When accessing an enum object with its own type,
// When accessing an enum object with its own type,
// e.g. E[E.A] for enum E { A }, undefined shouldn't
// be included in the result type
if ((accessFlags & AccessFlags.IncludeUndefined) &&
Expand Down

0 comments on commit 80ae43d

Please sign in to comment.