2014-07-13 01:04:16 +02:00
|
|
|
//// [moduleNewExportBug.ts]
|
|
|
|
module mod1 {
|
|
|
|
interface mInt {
|
|
|
|
new (bar:any):any;
|
|
|
|
foo (bar:any):any;
|
|
|
|
}
|
|
|
|
|
|
|
|
class C { public moo() {}}
|
|
|
|
}
|
|
|
|
|
|
|
|
var c : mod1.C; // ERROR: C should not be visible
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//// [moduleNewExportBug.js]
|
|
|
|
var mod1;
|
|
|
|
(function (mod1) {
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
2015-02-07 03:45:09 +01:00
|
|
|
C.prototype.moo = function () { };
|
2014-07-13 01:04:16 +02:00
|
|
|
return C;
|
|
|
|
})();
|
|
|
|
})(mod1 || (mod1 = {}));
|
2014-08-15 22:18:54 +02:00
|
|
|
var c; // ERROR: C should not be visible
|