mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
unbreak compiler_crashers_fixed/26558-swift-constraints-constraintsystem-gettypeofmemberreference.swift,
I'll reduce a testcase later. Swift SVN r31020
This commit is contained in:
@@ -3520,7 +3520,8 @@ bool FailureDiagnosis::visitCallExpr(CallExpr *callExpr) {
|
||||
// argument analysis stuff.
|
||||
// TODO: If all candidates have the same type for some argument, we could pass
|
||||
// down partial information.
|
||||
if (fnType->hasTypeVariable() && calleeInfo.size() == 1)
|
||||
if (fnType->hasTypeVariable() && calleeInfo.size() == 1 &&
|
||||
calleeInfo[0].getUncurriedFunctionType())
|
||||
fnType = calleeInfo[0].getUncurriedFunctionType();
|
||||
|
||||
// If we resolved a concrete expression for the callee, and it has
|
||||
|
||||
Reference in New Issue
Block a user