We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aee1bf6 commit 5c11d4cCopy full SHA for 5c11d4c
src/compiler/checker.ts
@@ -13467,7 +13467,7 @@ namespace ts {
13467
return maybeTypeOfKind(contextualType, (TypeFlags.NumberLiteral | TypeFlags.EnumLiteral));
13468
}
13469
if (type.flags & TypeFlags.Boolean) {
13470
- return maybeTypeOfKind(contextualType, TypeFlags.BooleanLiteral) && !isTypeAssignableTo(booleanType, contextualType);
+ return maybeTypeOfKind(contextualType, TypeFlags.BooleanLiteral);
13471
13472
if (type.flags & TypeFlags.Enum) {
13473
return typeContainsLiteralFromEnum(contextualType, <EnumType>type);
0 commit comments