File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -289,6 +289,8 @@ static void collectPossibleCalleesByQualifiedLookup(
289
289
if (!VD->hasInterfaceType ())
290
290
continue ;
291
291
Type declaredMemberType = VD->getInterfaceType ();
292
+ if (!declaredMemberType->is <AnyFunctionType>())
293
+ continue ;
292
294
if (VD->getDeclContext ()->isTypeContext ()) {
293
295
if (isa<FuncDecl>(VD)) {
294
296
if (!isOnMetaType && VD->isStatic ())
Original file line number Diff line number Diff line change @@ -368,3 +368,13 @@ func test_41071587(x: Any) {
368
368
}
369
369
}
370
370
// RDAR_41071587: Begin completions
371
+
372
+ // rdar://problem/54215016
373
+ // RUN: %target-swift-ide-test -code-completion -code-completion-token=RDAR_54215016 -source-filename=%s | %FileCheck %s -check-prefix=RDAR_54215016
374
+ struct test_54215016 {
375
+ func genericError< Value> ( )
376
+ func test( ) {
377
+ genericError ( #^RDAR_54215016 ^#)
378
+ // RDAR_54215016: Begin completions
379
+ }
380
+ }
You can’t perform that action at this time.
0 commit comments