Skip to content

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

Closed
tjenkinson/TypeScript
#3
@mhegazy

Description

@mhegazy
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 ( ) ;

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions