19 lines
454 B
TypeScript
19 lines
454 B
TypeScript
//// [interfaceImplementation7.ts]
|
|
interface i1{ name(): { s: string; }; }
|
|
interface i2{ name(): { n: number; }; }
|
|
|
|
interface i3 extends i1, i2 { }
|
|
interface i4 extends i1, i2 { name(): { s: string; n: number; }; }
|
|
|
|
class C1 implements i4 {
|
|
public name(): string { return ""; }
|
|
}
|
|
|
|
|
|
//// [interfaceImplementation7.js]
|
|
var C1 = (function () {
|
|
function C1() {
|
|
}
|
|
C1.prototype.name = function () { return ""; };
|
|
return C1;
|
|
}());
|