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

Return type of public method from exported class has or is using private name 'Foo'. #4600

Closed
vilicvane opened this issue Sep 2, 2015 · 0 comments
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@vilicvane
Copy link
Contributor

TypeScript version: 1.7.0-dev.20150901

This error underlines method bar:

export class Foo {
    Foo() { }

    bar() {
        return function (FooType: typeof Foo) {

        };
    }
}
@danquirk danquirk added the Bug A bug in TypeScript label Sep 2, 2015
@mhegazy mhegazy self-assigned this Sep 3, 2015
@mhegazy mhegazy added this to the TypeScript 1.7 milestone Sep 3, 2015
@mhegazy mhegazy modified the milestones: TypeScript 1.7, TypeScript 1.8 Oct 9, 2015
@mhegazy mhegazy modified the milestones: TypeScript 1.8, TypeScript 2.0 Dec 8, 2015
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Mar 17, 2016
@mhegazy mhegazy closed this as completed Mar 18, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
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

3 participants