Skip to content

Commit 0337e5a

Browse files
committed
Merge remote-tracking branch 'origin/master' into master-rebranch
2 parents 1a0757d + 8fc2634 commit 0337e5a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lib/IDE/ExprContextAnalysis.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ static void collectPossibleCalleesByQualifiedLookup(
289289
if (!VD->hasInterfaceType())
290290
continue;
291291
Type declaredMemberType = VD->getInterfaceType();
292+
if (!declaredMemberType->is<AnyFunctionType>())
293+
continue;
292294
if (VD->getDeclContext()->isTypeContext()) {
293295
if (isa<FuncDecl>(VD)) {
294296
if (!isOnMetaType && VD->isStatic())

test/IDE/complete_crashes.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,3 +368,13 @@ func test_41071587(x: Any) {
368368
}
369369
}
370370
// 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+
}

0 commit comments

Comments
 (0)