mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
23 lines
378 B
TypeScript
23 lines
378 B
TypeScript
//// [tests/cases/compiler/externModuleClobber.ts] ////
|
|
|
|
//// [externModuleClobber.ts]
|
|
declare namespace 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]
|
|
"use strict";
|
|
var x;
|
|
var ec = new EM.EC();
|
|
x = ec.getPosition();
|