19 lines
301 B
TypeScript
19 lines
301 B
TypeScript
//// [externModuleClobber.ts]
|
|
declare module EM {
|
|
export class Position { }
|
|
|
|
export class EC {
|
|
public getPosition() : EM.Position;
|
|
}
|
|
}
|
|
|
|
var x:EM.Position;
|
|
var ec:EM.EC = new EM.EC();
|
|
|
|
x = ec.getPosition();
|
|
|
|
|
|
//// [externModuleClobber.js]
|
|
var x;
|
|
var ec = new EM.EC();
|
|
x = ec.getPosition();
|