2016-11-29 21:33:20 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2017-12-07 21:14:18 +01:00
|
|
|
////abstract class A {
|
|
|
|
//// private _a: string;
|
2016-11-29 21:33:20 +01:00
|
|
|
////
|
2017-12-07 21:14:18 +01:00
|
|
|
//// abstract get a(): string;
|
|
|
|
//// abstract set a(newName: string);
|
|
|
|
////
|
|
|
|
//// abstract get b(): number;
|
|
|
|
////
|
|
|
|
//// abstract set c(arg: number | string);
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
////class C implements A {}
|
|
|
|
|
|
|
|
verify.codeFix({
|
|
|
|
description: "Implement interface 'A'",
|
|
|
|
// TODO: GH#18445
|
|
|
|
newFileContent:
|
|
|
|
`abstract class A {
|
|
|
|
private _a: string;
|
|
|
|
|
|
|
|
abstract get a(): string;
|
|
|
|
abstract set a(newName: string);
|
|
|
|
|
|
|
|
abstract get b(): number;
|
|
|
|
|
|
|
|
abstract set c(arg: number | string);
|
|
|
|
}
|
2016-11-29 21:33:20 +01:00
|
|
|
|
2017-12-07 21:14:18 +01:00
|
|
|
class C implements A {\r
|
|
|
|
a: string;\r
|
|
|
|
b: number;\r
|
|
|
|
c: string | number;\r
|
|
|
|
}`,
|
|
|
|
});
|