mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-26 00:36:29 -05:00
Support completions for string literal in rest parameter
This commit is contained in:
10
tests/cases/fourslash/completionForStringLiteral7.ts
Normal file
10
tests/cases/fourslash/completionForStringLiteral7.ts
Normal 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"]);
|
||||
Reference in New Issue
Block a user