2019-07-05 14:17:17 +02:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
// @strict: true
|
|
|
|
|
|
|
|
//// interface I {
|
|
|
|
//// B?: number;
|
|
|
|
//// a: number;
|
|
|
|
//// c?: string;
|
|
|
|
//// d: string
|
|
|
|
//// }
|
|
|
|
|
|
|
|
//// const foo = {
|
|
|
|
//// a: 1,
|
|
|
|
//// B: 2
|
|
|
|
//// }
|
|
|
|
|
|
|
|
//// const i: I = {
|
|
|
|
//// ...foo,
|
|
|
|
//// /*a*/
|
|
|
|
//// }
|
|
|
|
|
2019-07-18 07:52:51 +02:00
|
|
|
verify.completions(
|
|
|
|
{
|
|
|
|
marker: ['a'],
|
|
|
|
exact: [
|
|
|
|
{ name: 'B', kindModifiers: 'optional', sortText: completion.SortText.MemberDeclaredBySpreadAssignment, kind: 'property' },
|
|
|
|
{ name: 'a', sortText: completion.SortText.MemberDeclaredBySpreadAssignment, kind: 'property' },
|
|
|
|
{ name: 'c', kindModifiers: 'optional', sortText: completion.SortText.OptionalMember, kind: 'property' },
|
|
|
|
{ name: 'd', sortText: completion.SortText.LocationPriority, kind: 'property' }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
);
|