fix Issue 12305 - infer context from "this" of aliased methods

https://d.puremagic.com/issues/show_bug.cgi?id=12305