inference for indirect invocations #1127