File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -47457,9 +47457,11 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4745747457 function checkInterfaceDeclaration(node: InterfaceDeclaration) {
4745847458 // Grammar checking
4745947459 if (!checkGrammarModifiers(node)) checkGrammarInterfaceDeclaration(node);
47460- if (!allowBlockDeclarations(node.parent)) {
47461- grammarErrorOnNode(node, Diagnostics._0_declarations_can_only_be_declared_inside_a_block, "interface");
47462- }
47460+ addLazyDiagnostic(() => {
47461+ if (!allowBlockDeclarations(node.parent)) {
47462+ grammarErrorOnNode(node, Diagnostics._0_declarations_can_only_be_declared_inside_a_block, "interface");
47463+ }
47464+ });
4746347465
4746447466 checkTypeParameters(node.typeParameters);
4746547467 addLazyDiagnostic(() => {
You can’t perform that action at this time.
0 commit comments