14 lines
No EOL
245 B
TypeScript
14 lines
No EOL
245 B
TypeScript
class C {
|
|
public foo(x: any) { return x; }
|
|
private x = 1;
|
|
}
|
|
|
|
interface I extends C {
|
|
other(x: any): any;
|
|
}
|
|
|
|
class D2 implements I {
|
|
public foo(x: any) { return x }
|
|
private x = 3;
|
|
other(x: any) { return x }
|
|
}
|