Phobos unit tests, unreadable code

2013-06-12 Thread Jacob Carlborg
I'm merging the orange (std.serialization) unit tests with the test of Phobos. I hit a problem. I'm getting a warning about unreadable code but it's clear the code is reachable in some cases because there's a static-if involved. The unit tests won't run if there's a warning. How can we solve

Re: Phobos unit tests, unreadable code

2013-06-12 Thread monarch_dodra
On Wednesday, 12 June 2013 at 08:49:36 UTC, Jacob Carlborg wrote: I'm merging the orange (std.serialization) unit tests with the test of Phobos. I hit a problem. I'm getting a warning about unreadable code but it's clear the code is reachable in some cases because there's a static-if involved.

Re: Phobos unit tests, unreadable code

2013-06-12 Thread Jacob Carlborg
On 2013-06-12 10:55, monarch_dodra wrote: Do you have a link to the actual problem? This, for example: https://github.com/jacob-carlborg/orange/blob/master/orange/serialization/Serializer.d#L1217 I could probably add an else. -- /Jacob Carlborg