Support completions for string literal in rest parameter

This commit is contained in:
Andy Hanson
2017-01-13 14:08:44 -08:00
parent d86d850211
commit f1b481a1b6
4 changed files with 17 additions and 4 deletions

View File

@@ -0,0 +1,10 @@
/// <reference path='fourslash.ts'/>
////type T = "foo" | "bar";
////type U = "oof" | "rab";
////function f(x: T, ...args: U[]) { };
////f("/*1*/", "/*2*/", "/*3*/");
verify.completionsAt("1", ["foo", "bar"]);
verify.completionsAt("2", ["oof", "rab"]);
verify.completionsAt("3", ["oof", "rab"]);