2014-07-13 01:04:16 +02:00
|
|
|
//// [ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.ts]
|
|
|
|
// all expected to be errors
|
|
|
|
|
|
|
|
class clodule1<T>{
|
|
|
|
|
|
|
|
id: string;
|
|
|
|
value: T;
|
|
|
|
}
|
|
|
|
|
|
|
|
module clodule1 {
|
|
|
|
function f(x: T) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
class clodule2<T>{
|
|
|
|
|
|
|
|
id: string;
|
|
|
|
value: T;
|
|
|
|
}
|
|
|
|
|
|
|
|
module clodule2 {
|
|
|
|
var x: T;
|
|
|
|
|
|
|
|
class D<U extends T>{
|
|
|
|
id: string;
|
|
|
|
value: U;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class clodule3<T>{
|
|
|
|
|
|
|
|
id: string;
|
|
|
|
value: T;
|
|
|
|
}
|
|
|
|
|
|
|
|
module clodule3 {
|
|
|
|
export var y = { id: T };
|
|
|
|
}
|
|
|
|
|
|
|
|
class clodule4<T>{
|
|
|
|
|
|
|
|
id: string;
|
|
|
|
value: T;
|
|
|
|
}
|
|
|
|
|
|
|
|
module clodule4 {
|
|
|
|
class D {
|
|
|
|
name: T;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// [ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.js]
|
2014-08-14 15:42:18 +02:00
|
|
|
// all expected to be errors
|
2014-07-13 01:04:16 +02:00
|
|
|
var clodule1 = (function () {
|
|
|
|
function clodule1() {
|
|
|
|
}
|
|
|
|
return clodule1;
|
|
|
|
})();
|
|
|
|
var clodule1;
|
|
|
|
(function (clodule1) {
|
2015-02-07 03:45:09 +01:00
|
|
|
function f(x) { }
|
2014-07-13 01:04:16 +02:00
|
|
|
})(clodule1 || (clodule1 = {}));
|
|
|
|
var clodule2 = (function () {
|
|
|
|
function clodule2() {
|
|
|
|
}
|
|
|
|
return clodule2;
|
|
|
|
})();
|
|
|
|
var clodule2;
|
|
|
|
(function (clodule2) {
|
|
|
|
var x;
|
|
|
|
var D = (function () {
|
|
|
|
function D() {
|
|
|
|
}
|
|
|
|
return D;
|
|
|
|
})();
|
|
|
|
})(clodule2 || (clodule2 = {}));
|
|
|
|
var clodule3 = (function () {
|
|
|
|
function clodule3() {
|
|
|
|
}
|
|
|
|
return clodule3;
|
|
|
|
})();
|
|
|
|
var clodule3;
|
|
|
|
(function (clodule3) {
|
|
|
|
clodule3.y = { id: T };
|
|
|
|
})(clodule3 || (clodule3 = {}));
|
|
|
|
var clodule4 = (function () {
|
|
|
|
function clodule4() {
|
|
|
|
}
|
|
|
|
return clodule4;
|
|
|
|
})();
|
|
|
|
var clodule4;
|
|
|
|
(function (clodule4) {
|
|
|
|
var D = (function () {
|
|
|
|
function D() {
|
|
|
|
}
|
|
|
|
return D;
|
|
|
|
})();
|
|
|
|
})(clodule4 || (clodule4 = {}));
|