fix Issue 12161 - ICE with "with" and alias this
Merge pull request #3273 from 9rnsr/fix12161

Issue 12161 - ICE with "with" and alias this