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 {
237237 // get the signature from the declaration and write it
238238 const functionDeclaration = < FunctionLike > location . parent ;
239239 // 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 =>
241241 declaration === ( location . kind === SyntaxKind . ConstructorKeyword ? functionDeclaration . parent : functionDeclaration ) ) ;
242242
243243 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