16 lines
404 B
TypeScript
16 lines
404 B
TypeScript
|
/// <reference path="fourslash.ts" />
|
||
|
|
||
|
////interface A { a: number }
|
||
|
////interface B { b: number }
|
||
|
////interface C { c: number }
|
||
|
////declare function f(a: A): void;
|
||
|
////declare function f(...bs: B[]): void;
|
||
|
////declare function f(...cs: C[]): void;
|
||
|
////f({ /*1*/ });
|
||
|
////f({ a: 1 }, { /*2*/ });
|
||
|
|
||
|
verify.completions(
|
||
|
{ marker: "1", exact: ["a", "b", "c"] },
|
||
|
{ marker: "2", exact: ["b", "c"] },
|
||
|
);
|