TypeScript/tests/cases/fourslash/codeFixClassImplementClassAbstractGettersAndSetters.ts

20 lines
419 B
TypeScript
Raw Normal View History

2016-11-29 21:33:20 +01:00
/// <reference path='fourslash.ts' />
2016-12-05 23:52:08 +01:00
//// 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
//// }
////
2016-12-05 23:52:08 +01:00
//// class C implements A {[| |]}
2016-11-29 21:33:20 +01:00
2016-12-05 23:52:08 +01:00
verify.rangeAfterCodeFix(`
2016-11-29 21:33:20 +01:00
a: string;
2016-12-05 23:52:08 +01:00
b: number;
c: string | number;
`);