Skip to content

Commit 7b79e1a

Browse files
committed
add an extra regression test case for string completions
1 parent 5313604 commit 7b79e1a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
///<reference path="fourslash.ts"/>
2+
// @strict: true
3+
////
4+
//// interface Events {
5+
//// click: any;
6+
//// drag: any;
7+
//// }
8+
////
9+
//// declare function addListener<K extends keyof Events>(type: K, listener: (ev: Events[K]) => any): void;
10+
////
11+
//// /*1*/addListener("/*2*/")/*3*/
12+
13+
verify.completions({ marker: ["2"], exact: ["click", "drag"] });
14+
verify.errorExistsBetweenMarkers("1", "3");

0 commit comments

Comments
 (0)