33 lines
713 B
JavaScript
33 lines
713 B
JavaScript
|
//// [ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.ts]
|
||
|
class clodule<T> {
|
||
|
id: string;
|
||
|
value: T;
|
||
|
|
||
|
static fn<U>(id: U) { }
|
||
|
}
|
||
|
|
||
|
module clodule {
|
||
|
// error: duplicate identifier expected
|
||
|
export function fn<T>(x: T, y: T): T {
|
||
|
return x;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
//// [ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.js]
|
||
|
var clodule = (function () {
|
||
|
function clodule() {
|
||
|
}
|
||
|
clodule.fn = function (id) {
|
||
|
};
|
||
|
return clodule;
|
||
|
})();
|
||
|
var clodule;
|
||
|
(function (clodule) {
|
||
|
function fn(x, y) {
|
||
|
return x;
|
||
|
}
|
||
|
clodule.fn = fn;
|
||
|
})(clodule || (clodule = {}));
|