mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
confused, in typescript a type decl needs the ( ) for a lambda
This commit is contained in:
parent
6fd0a38335
commit
c790b91bd5
@ -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…
x
Reference in New Issue
Block a user