38 lines
615 B
TypeScript
38 lines
615 B
TypeScript
//// [classAbstractOverloads.ts]
|
|
abstract class A {
|
|
abstract foo();
|
|
abstract foo() : number;
|
|
abstract foo();
|
|
|
|
abstract bar();
|
|
bar();
|
|
abstract bar();
|
|
|
|
abstract baz();
|
|
baz();
|
|
abstract baz();
|
|
baz() {}
|
|
|
|
qux();
|
|
}
|
|
|
|
abstract class B {
|
|
abstract foo() : number;
|
|
abstract foo();
|
|
x : number;
|
|
abstract foo();
|
|
abstract foo();
|
|
}
|
|
|
|
//// [classAbstractOverloads.js]
|
|
var A = (function () {
|
|
function A() {
|
|
}
|
|
A.prototype.baz = function () { };
|
|
return A;
|
|
})();
|
|
var B = (function () {
|
|
function B() {
|
|
}
|
|
return B;
|
|
})();
|