TypeScript/tests/cases/fourslash/completionListInFunctionExpression.ts
2014-07-29 12:17:44 -07:00

24 lines
611 B
TypeScript

/// <reference path="fourslash.ts"/>
////() => {
//// var foo = 0;
//// /*requestCompletion*/
//// foo./*memberCompletion*/toString;
////}/*editDeclaration*/
goTo.marker("requestCompletion");
verify.memberListContains("foo");
goTo.marker("memberCompletion");
verify.memberListContains("toExponential");
// Now change the decl by adding a semicolon
goTo.marker("editDeclaration");
edit.insert(";");
// foo should still be there
goTo.marker("requestCompletion");
verify.memberListContains("foo");
goTo.marker("memberCompletion");
verify.memberListContains("toExponential");