Closed Nicholas42 closed 2 years ago
I added a test case and changed the way I did this while I was at it. I introduced Incrementable
and Decrementable
as skills, which should always be used if one wants to have both. Before, this was only fixed for Arithmetic
. The test case from #61 will still not work, since there is no way around it, if we inherit from Post and Pre without adding the using directive.
Maybe it would be a good idea to add a warning somewhere that one should only use Incrementable
if both pre and postincrement is wanted?
Works around https://github.com/joboccara/NamedType/issues/61 for arithmetic types.