Skip to content

Enforce type parameter identical-ness when class+interface merging #6210

Description

@RyanCavanaugh

This should be an error:

class Foo<T extends Function> {
    n: T;
}
interface Foo<T extends Window> {
    y: T;
}

Currently whichever constraint came first wins

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions