Skip to content

Commit 63a941d

Browse files
authored
Add a regression test for completion list in object literal involving inferred obj with optional members (microsoft#48910)
1 parent 6834969 commit 63a941d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/// <reference path="fourslash.ts" />
2+
3+
////declare function test<
4+
//// Variants extends Partial<Record<'hover' | 'pressed', string>>,
5+
////>(v: Variants): void
6+
////
7+
////test({
8+
//// hover: "",
9+
//// /**/
10+
////});
11+
12+
verify.completions({
13+
marker: '',
14+
exact: [{
15+
name: 'pressed',
16+
sortText: completion.SortText.OptionalMember
17+
}]
18+
});

0 commit comments

Comments
 (0)