JasonBock / Rocks

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

Handle Anti-Constraints #331

Closed JasonBock closed 1 month ago

JasonBock commented 1 month 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.