2017-01-13 23:08:44 +01:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////type T = "foo" | "bar";
|
|
|
|
////type U = "oof" | "rab";
|
|
|
|
////function f(x: T, ...args: U[]) { };
|
2020-04-02 02:58:16 +02:00
|
|
|
////f("[|/*1*/|]", "[|/*2*/|]", "[|/*3*/|]");
|
2017-01-13 23:08:44 +01:00
|
|
|
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions(
|
2020-04-02 02:58:16 +02:00
|
|
|
{ marker: "1", exact: ["foo", "bar"].map(name => ({
|
|
|
|
name, replacementSpan: test.ranges()[0]
|
|
|
|
})) },
|
|
|
|
{ marker: "2", exact: ["oof", "rab"].map(name => ({
|
|
|
|
name, replacementSpan: test.ranges()[1]
|
|
|
|
})) },
|
|
|
|
{ marker: "3", exact: ["oof", "rab"].map(name => ({
|
|
|
|
name, replacementSpan: test.ranges()[2]
|
|
|
|
})) },
|
2018-10-29 18:03:25 +01:00
|
|
|
);
|