File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ namespace ts.SymbolDisplay {
237
237
// get the signature from the declaration and write it
238
238
const functionDeclaration = < FunctionLike > location . parent ;
239
239
// Use function declaration to write the signatures only if the symbol corresponding to this declaration
240
- const locationIsSymbolDeclaration = find ( symbol . declarations , declaration =>
240
+ const locationIsSymbolDeclaration = symbol . declarations && find ( symbol . declarations , declaration =>
241
241
declaration === ( location . kind === SyntaxKind . ConstructorKeyword ? functionDeclaration . parent : functionDeclaration ) ) ;
242
242
243
243
if ( locationIsSymbolDeclaration ) {
Original file line number Diff line number Diff line change
1
+ /// <reference path="fourslash.ts" />
2
+ // https://github.com/microsoft/TypeScript/issues/32983
3
+
4
+ ////type M = { [K in 'one']: any };
5
+ ////const x: M = {
6
+ //// /**/one() {}
7
+ //// }
8
+
9
+ verify . quickInfoAt ( "" , "(property) one: any" ) ;
You can’t perform that action at this time.
0 commit comments