-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
TypeScript Version: 2.9.2, 3.0.0-dev.20180616
Search Terms:
Completion list, unique symbol, private symbol
Code
namespace A {
const sym = Symbol()
export interface Foo {
[sym]: number
}
}
declare const foo: A.Foo
foo.Expected behavior:
Completion items on foo. should not include sym as the symbol is not visible outside the A namespace.
The example above uses a namespace, but the same issue is present when importing an interface with a module-private symbol from another module.
Actual behavior:
sym is included in completion items and resolving to its own declaration instead of the property type:
Playground Link:
Related Issues:
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorFixedA PR has been merged for this issueA PR has been merged for this issue
