Skip to content

Commit

Permalink
Add comments to test types and rename to suit
Browse files Browse the repository at this point in the history
  • Loading branch information
ReubenBond committed May 22, 2024
1 parent 1357451 commit 52e0971
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions test/DefaultCluster.Tests/CodeGenTests/IRuntimeCodeGenGrain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,31 @@ namespace Tester.CodeGenTests
using Orleans;
using Orleans.Providers;

public interface ISomeInterface<in T>
// Regression test for explicit interface method implementations https://github.com/dotnet/orleans/issues/8991
public interface IExplicitInterfaceMethodImplementationTestGenericBase<in T>
{
Task M(T arg);
}

public interface IBase : ISomeInterface<object>;
public interface IExplicitInterfaceMethodImplementationTestBase : IExplicitInterfaceMethodImplementationTestGenericBase<object>;

public interface IDerived : IBase, ISomeInterface<string>
public interface IExplicitInterfaceMethodImplementationTestDerived : IExplicitInterfaceMethodImplementationTestBase, IExplicitInterfaceMethodImplementationTestGenericBase<string>
{
Task ISomeInterface<object>.M(object obj) => M(obj);
Task IExplicitInterfaceMethodImplementationTestGenericBase<object>.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)
{
throw new NotImplementedException();
}
}

// End regression test for https://github.com/dotnet/orleans/issues/8991

public interface IGrainWithGenericMethods : IGrainWithGuidKey
{
Task<Type[]> GetTypesExplicit<T, U, V>();
Expand Down

0 comments on commit 52e0971

Please sign in to comment.