`Dsymbol::setScope` is basically used for resolving forward reference on DeclDefs scope. Therefore using it in statement scope looks weird. However, in this case, I agree that it would be unavoidable.

I think adding a "note" comment about it would be better.