2014-07-13 01:04:16 +02:00
|
|
|
//// [augmentedTypesClass3.ts]
|
|
|
|
// class then module
|
|
|
|
class c5 { public foo() { } }
|
|
|
|
module c5 { } // should be ok
|
|
|
|
|
|
|
|
class c5a { public foo() { } }
|
|
|
|
module c5a { var y = 2; } // should be ok
|
|
|
|
|
|
|
|
class c5b { public foo() { } }
|
|
|
|
module c5b { export var y = 2; } // should be ok
|
|
|
|
|
|
|
|
//// class then import
|
|
|
|
class c5c { public foo() { } }
|
|
|
|
//import c5c = require('');
|
|
|
|
|
|
|
|
//// [augmentedTypesClass3.js]
|
2014-08-14 15:42:18 +02:00
|
|
|
// class then module
|
2014-07-13 01:04:16 +02:00
|
|
|
var c5 = (function () {
|
|
|
|
function c5() {
|
|
|
|
}
|
|
|
|
c5.prototype.foo = function () {
|
|
|
|
};
|
|
|
|
return c5;
|
|
|
|
})();
|
|
|
|
var c5a = (function () {
|
|
|
|
function c5a() {
|
|
|
|
}
|
|
|
|
c5a.prototype.foo = function () {
|
|
|
|
};
|
|
|
|
return c5a;
|
|
|
|
})();
|
|
|
|
var c5a;
|
|
|
|
(function (c5a) {
|
|
|
|
var y = 2;
|
2014-08-15 22:18:54 +02:00
|
|
|
})(c5a || (c5a = {})); // should be ok
|
2014-07-13 01:04:16 +02:00
|
|
|
var c5b = (function () {
|
|
|
|
function c5b() {
|
|
|
|
}
|
|
|
|
c5b.prototype.foo = function () {
|
|
|
|
};
|
|
|
|
return c5b;
|
|
|
|
})();
|
|
|
|
var c5b;
|
|
|
|
(function (c5b) {
|
|
|
|
c5b.y = 2;
|
2014-08-15 22:18:54 +02:00
|
|
|
})(c5b || (c5b = {})); // should be ok
|
2014-08-14 15:42:18 +02:00
|
|
|
//// class then import
|
2014-07-13 01:04:16 +02:00
|
|
|
var c5c = (function () {
|
|
|
|
function c5c() {
|
|
|
|
}
|
|
|
|
c5c.prototype.foo = function () {
|
|
|
|
};
|
|
|
|
return c5c;
|
|
|
|
})();
|
2014-12-03 01:09:41 +01:00
|
|
|
//import c5c = require('');
|