mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Support completions for string literal in rest parameter
This commit is contained in:
1 parent
d86d850211
commit
f1b481a1b6
4 files changed
+17
-4
No files matched your search
@@ -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"]);
|
||||
Reference in new issue
Block a user