Fix duplicate errors in JSDoc function types with anon parameters

Fixes #6993
This commit is contained in:
Ryan Cavanaugh 2016-02-26 14:41:49 -08:00
parent dc4cd52a9a
commit 904091e6ea
2 changed files with 12 additions and 0 deletions

View File

@ -749,6 +749,7 @@ namespace ts {
case SyntaxKind.GetAccessor:
case SyntaxKind.SetAccessor:
case SyntaxKind.FunctionType:
case SyntaxKind.JSDocFunctionType:
case SyntaxKind.ConstructorType:
case SyntaxKind.FunctionExpression:
case SyntaxKind.ArrowFunction:

View File

@ -0,0 +1,11 @@
///<reference path="fourslash.ts" />
// @allowNonTsExtensions: true
// @Filename: Foo.js
//// /** @param {function ({OwnerID:string,AwayID:string}):void} x
//// * @param {function (string):void} y */
//// function fn(x, y) { }
verify.numberOfErrorsInCurrentFile(0);