mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 02:30:15 -06:00
Fix duplicate errors in JSDoc function types with anon parameters
Fixes #6993
This commit is contained in:
parent
dc4cd52a9a
commit
904091e6ea
@ -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