20 lines
364 B
JavaScript
20 lines
364 B
JavaScript
//// [overloadedStaticMethodSpecialization.ts]
|
|
class A<T> {
|
|
static B<S>(v: A<S>): A<S>;
|
|
static B<S>(v: S): A<S>;
|
|
static B<S>(v: any): A<S> {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
//// [overloadedStaticMethodSpecialization.js]
|
|
var A = (function () {
|
|
function A() {
|
|
}
|
|
A.B = function (v) {
|
|
return null;
|
|
};
|
|
return A;
|
|
})();
|