<div dir="ltr"><div>#(1 2) do:[:a :b| b] &quot;do it&quot;</div><div><br></div><div>Error: &#39;This block accepts 2 argument, but was called with 1 arguments.&#39;<br></div><div><br></div><div>Should not the numArgs and the numArgsForInvocation switch place here ?</div><div><br></div><div>BlockClosure&gt;&gt;numArgsError: numArgsForInvocation</div><div><br></div><div><span class="" style="white-space:pre">        </span>| printNArgs |</div><div><span class="" style="white-space:pre">        </span>printNArgs := [:n| n printString, &#39; argument&#39;, (n = 1 ifTrue: [&#39;&#39;] ifFalse:[&#39;s&#39;])]. </div><div><span class="" style="white-space:pre">        </span>self error: </div><div><span class="" style="white-space:pre">                        </span>&#39;This block accepts &#39;, (printNArgs value: numArgs), </div><div><span class="" style="white-space:pre">                        </span>&#39;, but was called with &#39;, (printNArgs value: numArgsForInvocation), &#39;.&#39;</div></div>