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-02-07 05:03:24 +01:00
|
|
|
get: function () { return null; },
|
2015-02-03 00:15:54 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
Object.defineProperty(foo, "Bar", {
|
2015-02-07 03:45:09 +01:00
|
|
|
set: function (v) { },
|
2015-02-03 00:15:54 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
return foo;
|
|
|
|
})();
|