confused, in typescript a type decl needs the ( ) for a lambda

This commit is contained in:
Paul van Brenk 2015-05-01 16:13:46 -07:00
parent 6fd0a38335
commit c790b91bd5
2 changed files with 0 additions and 5 deletions

View file

@ -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; // [ |

View file

@ -1,8 +1,6 @@
/// <reference path='fourslash.ts' />
////function F(pref: (a/*1*/
////
////function F(pref: a/*2*/
test.markers().forEach((m) => {
goTo.position(m.position, m.fileName);