15 lines
269 B
JavaScript
15 lines
269 B
JavaScript
|
//// [typeParametersInStaticMethods.ts]
|
||
|
class foo<T> {
|
||
|
static M(x: (x: T) => { x: { y: T } }) {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//// [typeParametersInStaticMethods.js]
|
||
|
var foo = (function () {
|
||
|
function foo() {
|
||
|
}
|
||
|
foo.M = function (x) {
|
||
|
};
|
||
|
return foo;
|
||
|
})();
|