mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
10 lines
177 B
JavaScript
10 lines
177 B
JavaScript
class A {
|
|
foo(): A { return this; }
|
|
}
|
|
class B extends A {
|
|
foo(): B { return this; }
|
|
}
|
|
class C extends A {}
|
|
var a: A = new B();
|
|
a.foo = function(): C { return new C(); }
|