2015-02-03 00:15:54 +01:00
|
|
|
//// [typeParametersInStaticAccessors.ts]
|
|
|
|
class foo<T> {
|
|
|
|
static get Foo(): () => T { return null; }
|
|
|
|
static set Bar(v: { v: T }) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [typeParametersInStaticAccessors.js]
|
|
|
|
var foo = (function () {
|
|
|
|
function foo() {
|
|
|
|
}
|
|
|
|
Object.defineProperty(foo, "Foo", {
|
2015-03-26 21:46:35 +01:00
|
|
|
get: function () { return null; },
|
2015-02-03 00:15:54 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
Object.defineProperty(foo, "Bar", {
|
2015-03-26 21:46:35 +01:00
|
|
|
set: function (v) { },
|
2015-02-03 00:15:54 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
return foo;
|
|
|
|
})();
|