Skip to content

Commit 25433b3

Browse files
committed
[CSGen] Use getType when refering to closure parameters in expression context
1 parent e6f2427 commit 25433b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Sema/CSGen.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2061,8 +2061,7 @@ namespace {
20612061

20622062
Type externalType;
20632063
if (param->getTypeRepr()) {
2064-
auto declaredTy =
2065-
closure->mapTypeIntoContext(param->getInterfaceType());
2064+
auto declaredTy = param->getType();
20662065
externalType = CS.openUnboundGenericType(declaredTy, paramLoc);
20672066
} else {
20682067
externalType = CS.createTypeVariable(

0 commit comments

Comments
 (0)