Skip to content

Commit 5755fb2

Browse files
authored
Merge pull request #83585 from hamishknight/ext-info
Avoid dropping ExtInfo in `replaceParamErrorTypeByPlaceholder`
2 parents 35b5c81 + 0bd1ff0 commit 5755fb2

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)