2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/inheritanceStaticFunctionOverridingInstanceProperty.ts ===
|
|
|
|
class a {
|
2015-04-16 01:44:20 +02:00
|
|
|
>a : a
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
x: string;
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : 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
|
|
|
|
|
|
|
static x() {
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : () => string
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
return new b().x;
|
2015-04-16 01:44:20 +02:00
|
|
|
>new b().x : string
|
2014-08-15 23:33:16 +02:00
|
|
|
>new b() : b
|
2015-04-16 01:44:20 +02:00
|
|
|
>b : typeof b
|
|
|
|
>x : string
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|