18 lines
356 B
TypeScript
18 lines
356 B
TypeScript
//// [genericMergedDeclarationUsingTypeParameter2.ts]
|
|
class foo<T> { constructor(x: T) { } }
|
|
module foo {
|
|
export var x: T;
|
|
var y = <T>1;
|
|
}
|
|
|
|
|
|
//// [genericMergedDeclarationUsingTypeParameter2.js]
|
|
var foo = (function () {
|
|
function foo(x) {
|
|
}
|
|
return foo;
|
|
})();
|
|
var foo;
|
|
(function (foo) {
|
|
var y = 1;
|
|
})(foo || (foo = {}));
|