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 656f54a
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 IExplicitOverridesTestGenericBase<in T>
{
Task M(T arg);
}

public interface IBase : ISomeInterface<object>;
public interface IExplicitOverridesTestBase : IExplicitOverridesTestGenericBase<object>;

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

public interface ISomeGrainWithExplicitImplementation : IDerived, IGrainWithGuidKey;
public interface IExplicitOverridesTestImplementation : IExplicitOverridesTestDerived, IGrainWithGuidKey;

public class SomeGrain : Grain, ISomeGrainWithExplicitImplementation
public class ExplicitOverridesTestGrain : Grain, IExplicitOverridesTestImplementation
{
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 656f54a

Please sign in to comment.