Skip to content

Compiler crashes when emitting declaration for malformed interface  #12291

Closed

Description

TypeScript Version: nightly, with --declaration flag, also reproducable with stable version
Code

// @declaration
class A {}
interface Class extends (typeof A) {}

Expected behavior:
Report error like without --declaration flag.

Actual behavior:
Crashes with Cannot read property 'heritageClauses' of undefined in writeInterfaceDeclaration

Activity

  1. added this to the milestone on Nov 18, 2016
  2. added a commit that references this issue on Nov 18, 2016
    cbde25f
  3. added a commit that references this issue on Nov 18, 2016
  4. added 2 commits that reference this issue on Nov 18, 2016
    9ce544e
    707ed69
  5. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions