Skip to content

Commit 7e6b441

Browse files
committed
Merge remote-tracking branch 'origin/main' into rebranch
2 parents a06b4d6 + 5755fb2 commit 7e6b441

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/Sema/TypeOfReference.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,8 @@ static Type replaceParamErrorTypeByPlaceholder(Type type, ValueDecl *value, bool
989989
}
990990
}
991991
assert(newParams.size() == declParams.size());
992-
return FunctionType::get(newParams, funcType->getResult());
992+
return FunctionType::get(newParams, funcType->getResult(),
993+
funcType->getExtInfo());
993994
}
994995

995996
DeclReferenceType
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// {"kind":"complete","signature":"swift::AnyFunctionType::getExtInfo() const","signatureAssert":"Assertion failed: (hasExtInfo()), function getExtInfo"}
2-
// RUN: not --crash %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
2+
// RUN: %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
33
func a(b) a#^COMPLETE^#

0 commit comments

Comments
 (0)