39 lines
712 B
Text
39 lines
712 B
Text
=== tests/cases/compiler/externModuleClobber.ts ===
|
|
declare module EM {
|
|
>EM : typeof EM
|
|
|
|
export class Position { }
|
|
>Position : Position
|
|
|
|
export class EC {
|
|
>EC : EC
|
|
|
|
public getPosition() : EM.Position;
|
|
>getPosition : () => Position
|
|
>EM : any
|
|
>Position : Position
|
|
}
|
|
}
|
|
|
|
var x:EM.Position;
|
|
>x : EM.Position
|
|
>EM : any
|
|
>Position : EM.Position
|
|
|
|
var ec:EM.EC = new EM.EC();
|
|
>ec : EM.EC
|
|
>EM : any
|
|
>EC : EM.EC
|
|
>new EM.EC() : EM.EC
|
|
>EM.EC : typeof EM.EC
|
|
>EM : typeof EM
|
|
>EC : typeof EM.EC
|
|
|
|
x = ec.getPosition();
|
|
>x = ec.getPosition() : EM.Position
|
|
>x : EM.Position
|
|
>ec.getPosition() : EM.Position
|
|
>ec.getPosition : () => EM.Position
|
|
>ec : EM.EC
|
|
>getPosition : () => EM.Position
|
|
|