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

[Errors] getter returning private type #67

Closed
mhegazy opened this issue Jul 17, 2014 · 1 comment
Closed

[Errors] getter returning private type #67

mhegazy opened this issue Jul 17, 2014 · 1 comment
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Jul 17, 2014

module m1 {
    export class C2 implements m3.i3 {
        public get p1() {
            return new C1();
        }

        public f55() {
            return "Hello world";
        }
    }
    module m3 {
        export interface i3 {
            f55(): string;
        }
    }
    class C1 { }
}

Expected:

Exported class 'C2' implements private interface 'm3.i3'. Return type of public property getter from exported class has or is using private type 'C1'.
Actual: no error

@sheetalkamat
Copy link
Member

Fixed by 2654eed

@microsoft microsoft locked and limited conversation to collaborators Jun 18, 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

3 participants