11 lines
177 B
TypeScript
11 lines
177 B
TypeScript
|
class A {
|
||
|
constructor(f: () => string) {
|
||
|
}
|
||
|
public blah(): string { return ""; }
|
||
|
}
|
||
|
|
||
|
class B extends A {
|
||
|
constructor() {
|
||
|
super(() => { return super.blah(); })
|
||
|
}
|
||
|
}
|