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

[Emit] Import statement is not emited if alias is used in error position #45

Closed
mhegazy opened this issue Jul 17, 2014 · 1 comment · May be fixed by tjenkinson/TypeScript#3
Closed
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

import Sammy = require("errorsOnImportedSymbol_0");
var x = new Sammy.Sammy(); // Sammy.Sammy does not exist 
var y = Sammy.Sammy(); // Sammy.Sammy does not exist

Expected:

var Sammy = require ( "errorsOnImportedSymbol_0" ) ;
var x = new Sammy . Sammy ( ) ;
var y = Sammy . Sammy ( ) ;

Actual:

var x = new Sammy . Sammy ( ) ;
var y = Sammy . Sammy ( ) ;
@mhegazy mhegazy added this to the TypeScript 1.1 milestone Jul 17, 2014
@vladima
Copy link
Contributor

vladima commented Jul 18, 2014

cannot reproduce on the latest bits

@vladima vladima closed this as completed Jul 18, 2014
@vladima vladima removed the Fixed label Aug 5, 2014
@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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants