2016-10-28 20:48:01 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2017-10-10 20:28:05 +02:00
|
|
|
////abstract class A {
|
2016-10-28 20:48:01 +02:00
|
|
|
//// abstract x: number;
|
2017-02-17 02:10:33 +01:00
|
|
|
//// abstract y: this;
|
|
|
|
//// abstract z: A;
|
2017-10-10 20:28:05 +02:00
|
|
|
////}
|
2016-10-28 20:48:01 +02:00
|
|
|
////
|
2017-12-07 21:14:18 +01:00
|
|
|
////class C extends A {}
|
2016-10-28 20:48:01 +02: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 x: number;
|
|
|
|
abstract y: this;
|
|
|
|
abstract z: A;
|
|
|
|
}
|
|
|
|
|
2018-01-12 02:43:27 +01:00
|
|
|
class C extends A {
|
|
|
|
x: number;
|
|
|
|
y: this;
|
|
|
|
z: A;
|
2017-12-07 21:14:18 +01:00
|
|
|
}`
|
2017-10-10 20:28:05 +02:00
|
|
|
});
|