Skip to content

Destructuring assignment must not suggest private/protected properties #15214

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: LS: Completion ListsThe issue relates to showing completion lists in an editorHelp WantedYou can do this

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions