23 lines
293 B
Text
23 lines
293 B
Text
=== tests/cases/compiler/inheritanceMemberFuncOverridingMethod.ts ===
|
|
class a {
|
|
>a : a
|
|
|
|
x() {
|
|
>x : () => string
|
|
|
|
return "10";
|
|
>"10" : string
|
|
}
|
|
}
|
|
|
|
class b extends a {
|
|
>b : b
|
|
>a : a
|
|
|
|
x() {
|
|
>x : () => string
|
|
|
|
return "20";
|
|
>"20" : string
|
|
}
|
|
}
|