18 lines
377 B
TypeScript
18 lines
377 B
TypeScript
//// [functionCall5.ts]
|
|
module m1 { export class c1 { public a; }}
|
|
function foo():m1.c1{return new m1.c1();};
|
|
var x = foo();
|
|
|
|
//// [functionCall5.js]
|
|
var m1;
|
|
(function (m1) {
|
|
var c1 = (function () {
|
|
function c1() {
|
|
}
|
|
return c1;
|
|
}());
|
|
m1.c1 = c1;
|
|
})(m1 || (m1 = {}));
|
|
function foo() { return new m1.c1(); }
|
|
;
|
|
var x = foo();
|