Skip to content

Find all references does not find inherited constructor references #30216

@gabritto

Description

@gabritto

Calling find all references on a constructor will not return references to the constructor for classes that inherit it.

TypeScript Version: 3.4.0-dev.201xxxxx

Code

class Foo {
    constructor() { }
}
class Bar extends Foo { }
var bar = new Bar();
var foo = new Foo();

Expected behavior:
Calling find all references on Foo's constructor should return a reference to Bar in new Bar().
Actual behavior:
A reference to Bar in new Bar() is not returned.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScript

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