Skip to content

Commit 451b2d6

Browse files
author
Arthur Ozga
committed
Add signatures test
1 parent ec997f3 commit 451b2d6

4 files changed

+34
-36
lines changed

tests/cases/fourslash/codeFixClassImplementInterfacePropertyCallSignature.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

tests/cases/fourslash/codeFixClassImplementInterfacePropertyConstructSignature.1.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/cases/fourslash/codeFixClassImplementInterfacePropertyMethodSignature.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
//// interface I {
4+
//// a0: {};
5+
//// a1: { (b1: number, c1: string): number; };
6+
//// a2: (b2: number, c2: string) => number;
7+
//// a3: { (b3: number, c3: string): number, x: number };
8+
////
9+
//// a4: { new (b1: number, c1: string): number; };
10+
//// a5: new (b2: number, c2: string) => number;
11+
//// a6: { new (b3: number, c3: string): number, x: number };
12+
////
13+
//// a7: { foo(b7: number, c7: string): number };
14+
////
15+
//// a8: { (b81: number, c81: string): number, new (b82: number, c82: string): number; };
16+
////
17+
//// a9: { (b9: number, c9: string): number; [d9: number]: I };
18+
//// a10: { (b10: number, c10: string): number; [d10: string]: I };
19+
//// }
20+
//// class C implements I {[| |]}
21+
22+
verify.rangeAfterCodeFix(`
23+
a0: {};
24+
a1: (b1: number, c1: string) => number;
25+
a2: (b2: number, c2: string) => number;
26+
a3: { (b3: number, c3: string): number; x: number; };
27+
a4: new (b1: number, c1: string) => number;
28+
a5: new (b2: number, c2: string) => number;
29+
a6: { new (b3: number, c3: string): number; x: number; };
30+
a7: { foo(b7: number, c7: string): number; };
31+
a8: { (b81: number, c81: string): number; new (b82: number, c82: string): number; };
32+
a9: { (b9: number, c9: string): number; [d9: number]: I; };
33+
a10: { (b10: number, c10: string): number; [d10: string]: I; };
34+
`);

0 commit comments

Comments
 (0)