JasonBock / Rocks

A mocking library based on the Compiler APIs (Roslyn + Mocks)
MIT License
263 stars 20 forks source link

Handle Anti-Constraints #331

Closed JasonBock closed 3 months ago

JasonBock commented 4 months ago

Describe the solution you'd like I'm not sure what Rocks will do when it sees something like this:

public interface IAllowRefStructs<T>
  where T : allows ref struct
{
  // ...
}

Given that Rocks doesn't look for anti-constraints, it probably will bomb on what it produces, so I should handle this correctly.