Skip to content

2.7.1 regression: method doesn't show up in intellisense #21711

Description

@gcanti

TypeScript Version: 2.7.1 and typescript@next (2.8.0-dev.20180206)

Code

declare class Klass<A> {
  readonly value: A
  constructor(value: A)
  f<B extends number>(this: Klass<B>): void
}

const x = new Klass(1). // <= `f` is not suggested by intellisense

Expected behavior:

f should be listed in intellisense as happens with typescript v2.6.2

Actual behavior:

f doesn't show up in intellisense

Playground Link:

Playground repro

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: LS: Completion ListsThe issue relates to showing completion lists in an editorFixedA PR has been merged for this issue

    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