Skip to content

Commit f6a0f55

Browse files
authored
Merge pull request #76952 from xedin/void-has-no-subtype-conversions
[CSBindings] Adjust `hasConversions` to handle `Void` has having not …
2 parents a9d5903 + 76f0bcb commit f6a0f55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Sema/CSBindings.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,8 @@ static bool hasConversions(Type type) {
12721272
}
12731273

12741274
return !(type->is<StructType>() || type->is<EnumType>() ||
1275-
type->is<BuiltinType>() || type->is<ArchetypeType>());
1275+
type->is<BuiltinType>() || type->is<ArchetypeType>() ||
1276+
type->isVoid());
12761277
}
12771278

12781279
bool BindingSet::favoredOverDisjunction(Constraint *disjunction) const {

0 commit comments

Comments
 (0)