2018-02-28 08:55:07 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////class C {
|
|
|
|
//// z: boolean = true;
|
|
|
|
//// method() {
|
|
|
|
//// const x = 0;
|
|
|
|
//// this.y(x, "a", this.z);
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
|
2020-01-16 19:07:37 +01:00
|
|
|
verify.codeFix({
|
|
|
|
index: 0,
|
|
|
|
description: ignoreInterpolations(ts.Diagnostics.Declare_method_0),
|
2018-02-28 08:55:07 +01:00
|
|
|
newFileContent:
|
|
|
|
`class C {
|
|
|
|
z: boolean = true;
|
|
|
|
method() {
|
|
|
|
const x = 0;
|
|
|
|
this.y(x, "a", this.z);
|
|
|
|
}
|
2019-02-23 02:24:21 +01:00
|
|
|
y(x: number, arg1: string, z: boolean) {
|
2018-06-10 19:58:32 +02:00
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
2018-02-28 08:55:07 +01:00
|
|
|
}`,
|
|
|
|
});
|