File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1155,9 +1155,11 @@ See :ref:`overloading <function-overloading>` for more explanation.
1155
1155
Check for overload signatures that cannot match [overload-cannot-match]
1156
1156
--------------------------------------------------------------------------
1157
1157
1158
- In the case of an overloaded function, if one of the signatures is never accessible, this error may occur.
1159
- An example where this can occur is with the utilization of object and int types.
1160
- Consider swapping the declaration of the two types so that the narrower signature is declared before the broader signature.
1158
+ Warn if an ``@overload `` variant can never be matched, because an earlier
1159
+ overload has a wider signature. For example, this can happen if the two
1160
+ overloads accept the same parameters and each parameter on the first overload
1161
+ has the same type or a wider type than the corresponding parameter on the second
1162
+ overload.
1161
1163
1162
1164
Example:
1163
1165
You can’t perform that action at this time.
0 commit comments