mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
getInterfaceType() always returns a type (#28210)
getInterfaceType() always returns a type
This commit is contained in:
@@ -1471,7 +1471,7 @@ Type ConstraintSystem::getEffectiveOverloadType(const OverloadChoice &overload,
|
||||
|
||||
// Retrieve the interface type.
|
||||
auto type = decl->getInterfaceType();
|
||||
if (!type || type->hasError()) {
|
||||
if (type->hasError()) {
|
||||
return Type();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user