TypeScript/tests/cases/fourslash/completionListNewIdentifierVariableDeclaration.ts
2017-06-01 10:59:24 -07:00

13 lines
369 B
TypeScript

/// <reference path='fourslash.ts' />
////var x : (s/*1*/
////var y : (s:string, list/*2*/
goTo.marker("1");
verify.not.completionListIsEmpty();// As this can either be type or become arrow function parameter
verify.completionListAllowsNewIdentifier();
goTo.marker("2");
verify.completionListIsEmpty(); // Parameter name
verify.completionListAllowsNewIdentifier();