We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d6cb4f commit 15ac48cCopy full SHA for 15ac48c
lib/Sema/CSSolver.cpp
@@ -1944,7 +1944,7 @@ static Constraint *tryOptimizeGenericDisjunction(
1944
return type->isAny();
1945
});
1946
1947
- // If function declaration references `Any` or `Any?` type
+ // If function declaration references `Any` or an optional type,
1948
// let's not attempt it, because it's unclear
1949
// without solving which overload is going to be better.
1950
return !hasAnyOrOptional;
0 commit comments