Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocompletion fails on union namespace function #18461

Closed
saschanaz opened this issue Sep 14, 2017 · 0 comments
Closed

Autocompletion fails on union namespace function #18461

saschanaz opened this issue Sep 14, 2017 · 0 comments
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@saschanaz
Copy link
Contributor

saschanaz commented Sep 14, 2017

TypeScript Version: 2.5.2

Code

let n: typeof Foo | typeof Bar;
n.name; // hover on `name` does not show its type
n.n // no autocompletion

namespace Foo {
    export function name() {
        return "foo";
    }
}

namespace Bar {
    export function name() {
        return "bar";
    }
}

Expected behavior: Autocompletion should work.

Actual behavior: It doesn't.

@saschanaz saschanaz changed the title Autocompletion fails on nested namespace function Autocompletion fails on union namespace function Sep 14, 2017
@mhegazy mhegazy added the Bug A bug in TypeScript label Sep 14, 2017
@mhegazy mhegazy assigned ghost Sep 14, 2017
@ghost ghost closed this as completed in #18483 Sep 14, 2017
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Sep 14, 2017
@mhegazy mhegazy added this to the TypeScript 2.6 milestone Sep 14, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

2 participants