Skip to content

Commit 15ac48c

Browse files
committed
Improve a comment regarding an constraint-favoring hack.
1 parent 1d6cb4f commit 15ac48c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSSolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1944,7 +1944,7 @@ static Constraint *tryOptimizeGenericDisjunction(
19441944
return type->isAny();
19451945
});
19461946

1947-
// If function declaration references `Any` or `Any?` type
1947+
// If function declaration references `Any` or an optional type,
19481948
// let's not attempt it, because it's unclear
19491949
// without solving which overload is going to be better.
19501950
return !hasAnyOrOptional;

0 commit comments

Comments
 (0)