Skip to content

Commit 0ca3a1f

Browse files
committed
Don't check private stuff
1 parent ead2d42 commit 0ca3a1f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/compiler/checker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42013,6 +42013,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4201342013
if (
4201442014
!(symbol.flags & (SymbolFlags.TypeLiteral | SymbolFlags.Signature))
4201542015
&& !shouldPrintWithInitializer(node)
42016+
&& !(hasEffectiveModifier(node, ModifierFlags.Private) || isPrivateIdentifierClassElementDeclaration(node))
4201642017
&& !isDeclarationAndNotVisible(node)
4201742018
) {
4201842019
const widenedLiteralType = getWidenedLiteralType(type);

0 commit comments

Comments
 (0)