confused, in typescript a type decl needs the ( ) for a lambda
This commit is contained in:
parent
6fd0a38335
commit
c790b91bd5
2 changed files with 0 additions and 5 deletions
|
@ -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; // [ |
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue