2018-08-24 06:31:53 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
//// class C {}
|
|
|
|
//// const n: number = new C().add(1, 2);
|
|
|
|
|
2020-01-16 19:07:37 +01:00
|
|
|
verify.codeFix({
|
|
|
|
index: 0,
|
|
|
|
description: ignoreInterpolations(ts.Diagnostics.Declare_method_0),
|
2018-08-24 06:31:53 +02:00
|
|
|
newFileContent:
|
|
|
|
`class C {
|
|
|
|
add(arg0: number, arg1: number): number {
|
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const n: number = new C().add(1, 2);`,
|
|
|
|
});
|