File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -770,10 +770,10 @@ $(GNAME OpApplyParameter):
770
770
771
771
$(P The $(D opApply) and $(D opApplyReverse) member functions can be overloaded.
772
772
Selection works similar to overload resolution by
773
- comparing the number of `foreach` variables and number of parameters of `body` and,
774
- if more than one overload remains unique overload ,
775
- matching the parameter types of `body` and each $(I ForeachType)
776
- declared in the $(I ForeachStatement) when given .)
773
+ comparing the number of `foreach` variables with the number of parameters of `body` and,
774
+ if more than one overload remains,
775
+ matching each parameter of `body` against each $(I ForeachType)
776
+ declared in the $(I ForeachStatement).)
777
777
778
778
$(BEST_PRACTICE Overload apply functions only with delegates differing in number of parameters
779
779
to enable type inference for `foreach` variables.
You can’t perform that action at this time.
0 commit comments