镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Find all references does not find inherited constructor references #30216

Closed

Description

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.

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

Metadata

Metadata

Labels

BugA bug in TypeScript

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions