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