Merge pull request #7449 from RyanCavanaugh/port6993fix

Fix duplicate errors in JSDoc function types with anon parameters
This commit is contained in:
Ryan Cavanaugh 2016-03-09 09:57:11 -08:00
commit b29f460641
2 changed files with 12 additions and 0 deletions

View File

@ -753,6 +753,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);