TypeScript/tests/cases/compiler/internalAliasClassInsideTopLevelModuleWithExport.ts
2014-07-12 17:30:19 -07:00

13 lines
243 B
TypeScript

//@module: commonjs
// @declaration: true
export module x {
export class c {
foo(a: number) {
return a;
}
}
}
export import xc = x.c;
export var cProp = new xc();
var cReturnVal = cProp.foo(10);