Skip to content

Property assignments in constructor should show up in intellisense #8846

Closed
@sandersn

Description

@sandersn

If you request completion at the /**/ below...

class C {
  constructor() {
    this.x = 'foo';
  }
}
let c = new C();
c./**/;

Expected behavior:

Completion list should contain x.

Actual behavior:

Completion list does not contain x.

Currently there is an error at this.x = 'foo', "Property 'x' does not exist in 'C'". That error should stay.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CommittedThe team has roadmapped this issueSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions