Skip to content

Commit c13d850

Browse files
committed
Add failing test
1 parent df1faa0 commit c13d850

File tree

1 file changed

+14
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)