We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba10a0d commit 80ae43dCopy full SHA for 80ae43d
src/compiler/checker.ts
@@ -15589,7 +15589,7 @@ m2: ${(this.mapper2 as unknown as DebugTypeMapper).__debugToString().split("\n")
15589
return accessFlags & AccessFlags.IncludeUndefined ? getUnionType([indexInfo.type, undefinedType]) : indexInfo.type;
15590
}
15591
errorIfWritingToReadonlyIndex(indexInfo);
15592
- // When accessing an enum object with its own type,
+ // When accessing an enum object with its own type,
15593
// e.g. E[E.A] for enum E { A }, undefined shouldn't
15594
// be included in the result type
15595
if ((accessFlags & AccessFlags.IncludeUndefined) &&
0 commit comments