Skip to content

Commit e8a1f16

Browse files
Added tests for index signature completion builders.
1 parent f37a7f5 commit e8a1f16

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
////interface I<T> {
4+
//// [/*1*/]: T;
5+
//// [/*2*/]: T;
6+
////}
7+
////
8+
////class C {
9+
//// [/*3*/]: string;
10+
//// [str/*4*/: string]: number;
11+
////}
12+
////
13+
////type T = {
14+
//// [x/*5*/yz: number]: boolean;
15+
//// [/*6*/
16+
17+
for (let marker of test.markers()) {
18+
goTo.position(marker.position);
19+
verify.completionListAllowsNewIdentifier();
20+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
////interface I<T> {
4+
//// [x: /*1*/]: T;
5+
//// [: /*2*/]: T
6+
////}
7+
////
8+
////class C {
9+
//// [a: /*3*/]: string;
10+
//// [str: string/*4*/]: number;
11+
////}
12+
////
13+
////type T = {
14+
//// [xyz: /*5*/
15+
16+
for (let marker of test.markers()) {
17+
goTo.position(marker.position);
18+
verify.not.completionListAllowsNewIdentifier();
19+
}

0 commit comments

Comments
 (0)