Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Invalid code generated for interface with explicit implementations #8991

Closed
alrz opened this issue May 10, 2024 · 0 comments · Fixed by #8992
Closed

Bug: Invalid code generated for interface with explicit implementations #8991

alrz opened this issue May 10, 2024 · 0 comments · Fixed by #8992

Comments

@alrz
Copy link
Member

alrz commented May 10, 2024

namespace MyNamespace
{
    interface ISomeInterface<in T> {
        Task M(T arg);
    }

    interface IBase : ISomeInterface<object>;

    interface IDerived : IBase, ISomeInterface<string> {
        Task ISomeInterface<string>.M(string obj) => M(obj as object);
    }

    interface ISomeGrain : IDerived, IGrainWithIntegerKey;

    class SomeGrain : ISomeGrain
    {
        public Task M(object arg)
        {
            throw new NotImplementedException();
        }
    }
}

Invalid code generated in grain proxy:

        Task Task global::MyNamespace.IDerived.MyNamespace.ISomeInterface<System.String>.M(string arg0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant