Skip to content

Type alias named undefined is allowed, but doesn't work #3087

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

Closed
RyanCavanaugh opened this issue May 8, 2015 · 0 comments
Closed

Type alias named undefined is allowed, but doesn't work #3087

RyanCavanaugh opened this issue May 8, 2015 · 0 comments
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue Help Wanted You can do this

Comments

@RyanCavanaugh
Copy link
Member

type undefined = string;
var x: undefined; // Error, cannot find name 'undefined'

Expected: Type alias should be an error, or the type annotation should work

@mhegazy mhegazy added the Bug A bug in TypeScript label May 8, 2015
@mhegazy mhegazy added this to the Community milestone May 28, 2015
@RyanCavanaugh RyanCavanaugh added the Help Wanted You can do this label Aug 5, 2015
@RyanCavanaugh RyanCavanaugh added the Fixed A PR has been merged for this issue label Dec 5, 2015
@mhegazy mhegazy modified the milestones: TypeScript 1.8, Community Dec 5, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 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 Help Wanted You can do this
Projects
None yet
Development

No branches or pull requests

2 participants