2017-02-23 01:15:16 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2017-10-10 20:28:05 +02:00
|
|
|
////abstract class A {
|
2017-02-23 01:15:16 +01:00
|
|
|
//// abstract f(): this;
|
2017-10-10 20:28:05 +02:00
|
|
|
////}
|
2017-02-23 01:15:16 +01:00
|
|
|
////
|
2017-12-07 21:14:18 +01:00
|
|
|
////class C extends A {}
|
2017-02-23 01:15:16 +01:00
|
|
|
|
2017-10-10 20:28:05 +02:00
|
|
|
verify.codeFix({
|
2017-12-02 01:38:59 +01:00
|
|
|
description: "Implement inherited abstract class",
|
2017-12-07 21:14:18 +01:00
|
|
|
newFileContent:
|
|
|
|
`abstract class A {
|
|
|
|
abstract f(): this;
|
|
|
|
}
|
|
|
|
|
2018-01-12 02:43:27 +01:00
|
|
|
class C extends A {
|
|
|
|
f(): this {
|
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
2017-12-07 21:14:18 +01:00
|
|
|
}`
|
2017-10-10 20:28:05 +02:00
|
|
|
});
|