Skip to content

Destructuring assignment must not suggest private/protected properties #15214

Closed
@falsandtru

Description

@falsandtru

Not limited to variable declarations.

TypeScript Version: 2.2.2

Code

const { b } = new class {
    private ab;
    protected bc;
};

Expected behavior:

No suggestion.

Actual behavior:

Suggested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Completion ListsThe issue relates to showing completion lists in an editorHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions