Skip to content

Compiler crashes when constraining type parameters with this in nightlies #6592

@falsandtru

Description

@falsandtru

A following code compiling succeeds in TS1.7.5, but now it fails with errors. Is this a breaking change?

class C {
  public m<T extends this>() {
  }
}
TypeError: Cannot read property 'constraint' of undefined

Metadata

Metadata

Assignees

No one assigned

    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