Skip to content

Commit

Permalink
Add a regression test for completion list in object literal involving…
Browse files Browse the repository at this point in the history
… inferred obj with optional members (#48910)
  • Loading branch information
Andarist authored May 2, 2022
1 parent 6834969 commit 63a941d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/cases/fourslash/completionListInObjectLiteral8.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/// <reference path="fourslash.ts" />

////declare function test<
//// Variants extends Partial<Record<'hover' | 'pressed', string>>,
////>(v: Variants): void
////
////test({
//// hover: "",
//// /**/
////});

verify.completions({
marker: '',
exact: [{
name: 'pressed',
sortText: completion.SortText.OptionalMember
}]
});

0 comments on commit 63a941d

Please sign in to comment.