mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
Merge pull request #7449 from RyanCavanaugh/port6993fix
Fix duplicate errors in JSDoc function types with anon parameters
This commit is contained in:
commit
b29f460641
@ -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:
|
||||
|
||||
11
tests/cases/fourslash/jsDocFunctionSignatures4.ts
Normal file
11
tests/cases/fourslash/jsDocFunctionSignatures4.ts
Normal 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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user