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] Exported type whose functions use parameters of non-exported type #55

Closed
mhegazy opened this issue Jul 17, 2014 · 1 comment
Closed
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

interface Foo {
    x: number;
}

export class Bar {
    f(x: Foo) { }

}

Expected: Parameter 'x' of public method from exported class has or is using private type 'Foo'.

Actual: no error

@mhegazy mhegazy added this to the TypeScript 1.1 milestone Jul 17, 2014
@sheetalkamat
Copy link
Member

Fixed by 4115077

@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