mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 02:15:12 -06:00
Merge pull request #7266 from RyanCavanaugh/fix6993
Fix duplicate errors in JSDoc function types with anon parameters
This commit is contained in:
commit
e05e98526b
@ -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:
|
||||
|
||||
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