2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/inheritanceMemberFuncOverridingMethod.ts ===
|
|
|
|
class a {
|
2015-04-16 01:44:20 +02:00
|
|
|
>a : a
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
x() {
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : () => string
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
return "10";
|
2015-04-13 21:36:11 +02:00
|
|
|
>"10" : string
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class b extends a {
|
2015-04-16 01:44:20 +02:00
|
|
|
>b : b
|
|
|
|
>a : a
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
x() {
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : () => string
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
return "20";
|
2015-04-13 21:36:11 +02:00
|
|
|
>"20" : string
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|