mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Add a regression test for completion list in object literal involving inferred obj with optional members (#48910)
This commit is contained in:
parent
6834969f8f
commit
63a941dc2a
18
tests/cases/fourslash/completionListInObjectLiteral8.ts
Normal file
18
tests/cases/fourslash/completionListInObjectLiteral8.ts
Normal file
@ -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
|
||||
}]
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user