diff --git a/test/DefaultCluster.Tests/CodeGenTests/IRuntimeCodeGenGrain.cs b/test/DefaultCluster.Tests/CodeGenTests/IRuntimeCodeGenGrain.cs index bc3da0c948..09b433bd5b 100644 --- a/test/DefaultCluster.Tests/CodeGenTests/IRuntimeCodeGenGrain.cs +++ b/test/DefaultCluster.Tests/CodeGenTests/IRuntimeCodeGenGrain.cs @@ -8,21 +8,22 @@ namespace Tester.CodeGenTests using Orleans; using Orleans.Providers; - public interface ISomeInterface + // Regression test for explicit interface method implementations https://github.com/dotnet/orleans/issues/8991 + public interface IExplicitInterfaceMethodImplementationTestGenericBase { Task M(T arg); } - public interface IBase : ISomeInterface; + public interface IExplicitInterfaceMethodImplementationTestBase : IExplicitInterfaceMethodImplementationTestGenericBase; - public interface IDerived : IBase, ISomeInterface + public interface IExplicitInterfaceMethodImplementationTestDerived : IExplicitInterfaceMethodImplementationTestBase, IExplicitInterfaceMethodImplementationTestGenericBase { - Task ISomeInterface.M(object obj) => M(obj); + Task IExplicitInterfaceMethodImplementationTestGenericBase.M(object obj) => M(obj); } - public interface ISomeGrainWithExplicitImplementation : IDerived, IGrainWithGuidKey; + public interface IExplicitInterfaceMethodImplementationTestImplementation : IExplicitInterfaceMethodImplementationTestDerived, IGrainWithGuidKey; - public class SomeGrain : Grain, ISomeGrainWithExplicitImplementation + public class ExplicitInterfaceMethodImplementationTestGrain : Grain, IExplicitInterfaceMethodImplementationTestImplementation { public Task M(string arg) { @@ -30,6 +31,8 @@ public Task M(string arg) } } + // End regression test for https://github.com/dotnet/orleans/issues/8991 + public interface IGrainWithGenericMethods : IGrainWithGuidKey { Task GetTypesExplicit();