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