icsharpcode/NRefactory — comment on commit 751b60194fcc41cae0c4dfd5f4734f2213df3d72
File:  line 0
By dgrunwald:

I don't see why this is necessary, the "does the short name resolve to the correct type" test should already take care of this.
Moreover, this fix is wrong for generic classes: "class G { class Inner {} public G.Inner field; }" - your code ends up removing the type arguments when simplifying the type reference.