37 lines
626 B
TypeScript
37 lines
626 B
TypeScript
//// [staticMembersUsingClassTypeParameter.ts]
|
|
// BUG 745747
|
|
class C<T> {
|
|
static x: T;
|
|
static f(x: T) {}
|
|
}
|
|
|
|
class C2<T, U> {
|
|
static x: U;
|
|
static f(x: U) { }
|
|
}
|
|
|
|
class C3<T extends Date> {
|
|
static x: T;
|
|
static f(x: T) { }
|
|
}
|
|
|
|
//// [staticMembersUsingClassTypeParameter.js]
|
|
// BUG 745747
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
C.f = function (x) { };
|
|
return C;
|
|
})();
|
|
var C2 = (function () {
|
|
function C2() {
|
|
}
|
|
C2.f = function (x) { };
|
|
return C2;
|
|
})();
|
|
var C3 = (function () {
|
|
function C3() {
|
|
}
|
|
C3.f = function (x) { };
|
|
return C3;
|
|
})();
|