Rename a target argument of Whatever_Invoke.InvokeAsync
Closed this issue · 0 comments
veblush commented
See a following case:
[ProtoContract, TypeAlias]
public class Whatever_Invoke
: IInterfacedPayload, IAsyncInvokable
{
[ProtoMember(1)] public System.String target;
[ProtoMember(2)] public System.String message;
public Type GetInterfaceType() { return typeof(IUser); }
public async Task<IValueGetable> InvokeAsync(object target)
{
var __v = await ((IWhatever)target).Whatever(target, message);
return (IValueGetable)(new Whisper_Return { v = __v });
}
}
There is a conflict between a member variable target
and an argument variable target
in InvokeAsync. Rename a name of the argument to avoid this conflict.