eiriktsarpalis / PolyType

Practical generic programming for C#
https://eiriktsarpalis.github.io/PolyType/
MIT License
145 stars 6 forks source link

Fix Size Check #4

Closed Tornhoof closed 6 months ago

Tornhoof commented 6 months ago

In the strategies in the same method, both the size is checked and elementSize is passed to the element functor, but not in the main functor. This fixes that and adds a test which asserts without the fix.