5
5
//// abstract f(a: number, b: string): this;
6
6
//// abstract f(a: string, b: number): Function;
7
7
//// abstract f(a: string): Function;
8
+ ////
9
+ //// abstract f1(this: A): number;
10
+ //// abstract f2(this: A, a: number, b: string): number;
11
+ ////
8
12
//// abstract foo(): number;
9
13
//// }
10
14
////
11
15
////declare class C extends A {}
12
16
13
17
verify . codeFix ( {
14
- description : "Implement inherited abstract class" ,
18
+ description : ts . Diagnostics . Implement_inherited_abstract_class . message ,
15
19
newFileContent :
16
20
`abstract class A {
17
21
abstract f(a: number, b: string): boolean;
18
22
abstract f(a: number, b: string): this;
19
23
abstract f(a: string, b: number): Function;
20
24
abstract f(a: string): Function;
25
+
26
+ abstract f1(this: A): number;
27
+ abstract f2(this: A, a: number, b: string): number;
28
+
21
29
abstract foo(): number;
22
30
}
23
31
@@ -26,6 +34,8 @@ declare class C extends A {
26
34
f(a: number, b: string): this;
27
35
f(a: string, b: number): Function;
28
36
f(a: string): Function;
37
+ f1(this: A): number;
38
+ f2(this: A, a: number, b: string): number;
29
39
foo(): number;
30
40
}`
31
41
} ) ;
0 commit comments