Skip to content

Commit 6c4ed9c

Browse files
authored
Merge pull request #13158 from DougGregor/type-checker-simplify-error-type
2 parents e4d83a7 + d8fddee commit 6c4ed9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/ConstraintSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1755,7 +1755,7 @@ Type simplifyTypeImpl(ConstraintSystem &cs, Type type, Fn getFixedTypeFn) {
17551755
assocType->getDeclContext());
17561756
auto result = assocType->getDeclaredInterfaceType().subst(subs);
17571757

1758-
if (result)
1758+
if (result && !result->hasError())
17591759
return result;
17601760
}
17611761

0 commit comments

Comments
 (0)