From c790b91bd589fceca5832e53855dad2253f45b76 Mon Sep 17 00:00:00 2001 From: Paul van Brenk Date: Fri, 1 May 2015 16:13:46 -0700 Subject: [PATCH] confused, in typescript a type decl needs the ( ) for a lambda --- src/services/services.ts | 3 --- .../completionListNewIdentifierFunctionDeclaration.ts | 2 -- 2 files changed, 5 deletions(-) diff --git a/src/services/services.ts b/src/services/services.ts index e7c51cddadd..06a606bb524 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -2988,9 +2988,6 @@ module ts { || containingNodeKind === SyntaxKind.ParenthesizedExpression // let x = (a| || containingNodeKind === SyntaxKind.ParenthesizedType; // function F(pred: (a - case SyntaxKind.ColonToken: - return containingNodeKind === SyntaxKind.Parameter; // function F(pred: a| - case SyntaxKind.OpenBracketToken: return containingNodeKind === SyntaxKind.ArrayLiteralExpression; // [ | diff --git a/tests/cases/fourslash/completionListNewIdentifierFunctionDeclaration.ts b/tests/cases/fourslash/completionListNewIdentifierFunctionDeclaration.ts index 56bebda6d63..8a9a5bfb9ed 100644 --- a/tests/cases/fourslash/completionListNewIdentifierFunctionDeclaration.ts +++ b/tests/cases/fourslash/completionListNewIdentifierFunctionDeclaration.ts @@ -1,8 +1,6 @@ /// ////function F(pref: (a/*1*/ -//// -////function F(pref: a/*2*/ test.markers().forEach((m) => { goTo.position(m.position, m.fileName);