vlingo-net / xoom-net-actors

Type safe Actor Model toolkit for reactive concurrency and resiliency using C# and other .NET languages.
Mozilla Public License 2.0
39 stars 18 forks source link

Generic constraints are wrongly generated in some cases #70

Closed tjaskula closed 5 years ago

tjaskula commented 5 years ago

It seems that when a proxy is generated with a generic method, a constraint is generated even if not necessary.

An example is the following line

public void Write<TSource>(string id, TState state, int stateVersion, Vlingo.Symbio.Store.State.IWriteResultInterest interest) where TSource : 

The generic constraint where TSource : is unfinished.

The original interface method is

void Write<TSource>(string id, TState state, int stateVersion, IWriteResultInterest interest);