Skip to content

Rename a target argument of Whatever_Invoke.InvokeAsync #19

@veblush

Description

@veblush

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions