We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a61f17 commit 05c4782Copy full SHA for 05c4782
lib/AST/ASTContext.cpp
@@ -3137,7 +3137,7 @@ AnyFunctionType *AnyFunctionType::getUncurriedFunction() {
3137
auto innerFunction = getResult()->castTo<AnyFunctionType>();
3138
SmallVector<TupleTypeElt, 4> params{getInput()->getDesugaredType()};
3139
3140
- if (auto tuple = innerFunction->getInput()->getAs<TupleType>())
+ if (auto tuple = dyn_cast<TupleType>(innerFunction->getInput().getPointer()))
3141
params.append(tuple->getElements().begin(), tuple->getElements().end());
3142
else
3143
params.push_back(innerFunction->getInput()->getDesugaredType());
0 commit comments