[Issue 16573] string-typed enum values pass isSomeString but not isInputRange

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Oct 2 08:08:20 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16573

--- Comment #2 from ryan at rcorre.net ---
> Personally, I'm surprised that isSomeString works with an enum

Well, you did merge the PR that made it so :)
https://github.com/dlang/phobos/pull/739

I agree that the simplest and most consistent solution is just reverting that,
but it seems like a deliberate decision.
Either way it sounds like isConvertibleToString should return true though.
While we're at it, isConvertibleToString should either be documented or made
private. What do you think?

--


More information about the Digitalmars-d-bugs mailing list