Skip to content

panic: Diagnostic emitted without contextΒ #64666

Description

πŸ”Ž Search Terms

"panic: Diagnostic emitted without context"

πŸ•— Version & Regression Information

nightly

⏯ Playground Link

No response

πŸ’» Code

label: interface I {}
export interface J extends I {}

πŸ™ Actual behavior

panic: Diagnostic emitted without context [recovered, repanicked]
github.com/microsoft/TypeScript/tsc/internal/transformers/declarations.throwDiagnostic({0xddbb4a68, {0x8bdec7, 0x2337dbc68008, 0x2337daab8ee8}, {0x2337da9e8230, 0x1}, 0x0, {0x1, 0x0}})
github.com/microsoft/TypeScript/tsc/internal/transformers/declarations.(*SymbolTrackerImpl).handleSymbolAccessibilityError(...)
github.com/microsoft/TypeScript/tsc/internal/transformers/declarations.(*DeclarationTransformer).checkEntityNameVisibility(...)
github.com/microsoft/TypeScript/tsc/internal/transformers/declarations.(*DeclarationTransformer).transformTypeReference(...)
github.com/microsoft/TypeScript/tsc/internal/transformers/declarations.(*DeclarationTransformer).visitDeclarationSubtree(...)
github.com/microsoft/TypeScript/tsc/internal/transformers/declarations.(*DeclarationTransformer).visit(...)
github.com/microsoft/TypeScript/tsc/internal/ast.(*NodeVisitor).VisitSlice(...)
github.com/microsoft/TypeScript/tsc/internal/ast.(*NodeVisitor).VisitNodes(...)
github.com/microsoft/TypeScript/tsc/internal/ast.(*NodeVisitor).visitNodes(...)
github.com/microsoft/TypeScript/tsc/internal/ast.(*HeritageClause).VisitEachChild(...)
github.com/microsoft/TypeScript/tsc/internal/ast.(*Node).VisitEachChild(...)
github.com/microsoft/TypeScript/tsc/internal/ast.(*NodeVisitor).VisitEachChild(...)
github.com/microsoft/TypeScript/tsc/internal/transformers/declarations.(*DeclarationTransformer).transformHeritageClause(...)
github.com/microsoft/TypeScript/tsc/internal/transformers/declarations.(*DeclarationTransformer).visitDeclarationSubtree(...)
github.com/microsoft/TypeScript/tsc/internal/transformers/declarations.(*DeclarationTransformer).visit(...)

πŸ™‚ Expected behavior

no crash

Additional information about the issue

To reproduce: tsc --declaration ./min.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScript

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions