diff --git a/tests/cases/fourslash/completionsWithOptionalPropertiesGenericValidBoolean.ts b/tests/cases/fourslash/completionsWithOptionalPropertiesGenericValidBoolean.ts new file mode 100644 index 0000000000000..ebba38f0dd336 --- /dev/null +++ b/tests/cases/fourslash/completionsWithOptionalPropertiesGenericValidBoolean.ts @@ -0,0 +1,19 @@ +/// <reference path="fourslash.ts" /> +// @strict: true + +//// interface MyOptions { +//// hello?: boolean; +//// world?: boolean; +//// } +//// declare function bar<T extends MyOptions>(options?: Partial<T>): void; +//// bar({ hello: true, /*1*/ }); + +verify.completions({ + marker: '1', + includes: [ + { + sortText: completion.SortText.OptionalMember, + name: 'world' + }, + ] +})