32 lines
682 B
TypeScript
32 lines
682 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
//// abstract class A {
|
|
//// private _a: string;
|
|
////
|
|
//// abstract get a(): number | string;
|
|
//// abstract get b(): this;
|
|
//// abstract get c(): A;
|
|
////
|
|
//// abstract set d(arg: number | string);
|
|
//// abstract set e(arg: this);
|
|
//// abstract set f(arg: A);
|
|
////
|
|
//// abstract get g(): string;
|
|
//// abstract set g(newName: string);
|
|
//// }
|
|
////
|
|
//// // Don't need to add anything in this case.
|
|
//// abstract class B extends A {}
|
|
////
|
|
//// class C extends A {[| |]}
|
|
|
|
verify.rangeAfterCodeFix(`
|
|
a: string | number;
|
|
b: this;
|
|
c: A;
|
|
d: string | number;
|
|
e: this;
|
|
f: A;
|
|
g: string;
|
|
`);
|