2014-07-13 01:04:16 +02:00
|
|
|
//// [genericMergedDeclarationUsingTypeParameter.ts]
|
|
|
|
function foo<T extends U, U>(y: T, z: U) { return y; }
|
|
|
|
module foo {
|
|
|
|
export var x: T;
|
|
|
|
var y = <T>1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// [genericMergedDeclarationUsingTypeParameter.js]
|
2015-02-07 05:03:24 +01:00
|
|
|
function foo(y, z) { return y; }
|
2014-07-13 01:04:16 +02:00
|
|
|
var foo;
|
|
|
|
(function (foo) {
|
|
|
|
foo.x;
|
|
|
|
var y = 1;
|
|
|
|
})(foo || (foo = {}));
|