getInterfaceType() always returns a type (#28210)

getInterfaceType() always returns a type
This commit is contained in:
Hamish Knight
2019-11-12 13:24:05 -08:00
committed by GitHub
15 changed files with 52 additions and 97 deletions

View File

@@ -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();
}