2017-12-07 21:14:18 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////class C {
|
|
|
|
//// method() {
|
|
|
|
//// this.x = 0;
|
|
|
|
//// this.y();
|
|
|
|
//// this.x = "";
|
|
|
|
//// }
|
|
|
|
////}
|
2018-07-02 20:26:50 +02:00
|
|
|
////
|
|
|
|
////class D extends C {}
|
|
|
|
////class E extends D {
|
|
|
|
//// method() {
|
|
|
|
//// this.x = 0;
|
|
|
|
//// this.ex = 0;
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
////class Unrelated {
|
|
|
|
//// method() {
|
|
|
|
//// this.x = 0;
|
|
|
|
//// }
|
|
|
|
////}
|
2018-07-03 01:06:57 +02:00
|
|
|
////
|
|
|
|
////enum En {}
|
|
|
|
////En.A;
|
2017-12-07 21:14:18 +01:00
|
|
|
|
|
|
|
verify.codeFixAll({
|
|
|
|
fixId: "addMissingMember",
|
2018-03-28 03:21:21 +02:00
|
|
|
fixAllDescription: "Add all missing members",
|
2017-12-07 21:14:18 +01:00
|
|
|
newFileContent:
|
|
|
|
`class C {
|
2018-01-12 02:43:27 +01:00
|
|
|
x: number;
|
2017-12-07 21:14:18 +01:00
|
|
|
method() {
|
|
|
|
this.x = 0;
|
|
|
|
this.y();
|
|
|
|
this.x = "";
|
|
|
|
}
|
2019-02-23 02:24:21 +01:00
|
|
|
y() {
|
2018-05-27 23:09:47 +02:00
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
2018-07-02 20:26:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
class D extends C {}
|
|
|
|
class E extends D {
|
|
|
|
ex: number;
|
|
|
|
method() {
|
|
|
|
this.x = 0;
|
|
|
|
this.ex = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class Unrelated {
|
|
|
|
x: number;
|
|
|
|
method() {
|
|
|
|
this.x = 0;
|
|
|
|
}
|
2018-07-03 01:06:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
enum En {
|
2018-06-30 04:39:19 +02:00
|
|
|
A
|
|
|
|
}
|
2018-07-03 01:06:57 +02:00
|
|
|
En.A;`,
|
2017-12-07 21:14:18 +01:00
|
|
|
});
|