14 lines
326 B
TypeScript
14 lines
326 B
TypeScript
//// [overloadOnConstNoNonSpecializedSignature.ts]
|
|
class C {
|
|
x1(a: 'hi'); // error, no non-specialized signature in overload list
|
|
x1(a: string) { }
|
|
}
|
|
|
|
|
|
//// [overloadOnConstNoNonSpecializedSignature.js]
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
C.prototype.x1 = function (a) { };
|
|
return C;
|
|
})();
|