D-Programming-Language/dmd — pull request #2847 by yebblies (2013-11-21 15:13:00+00:00)
Title: Issue 10221 - foreach(char c; 0..256) doesn't work even though the upper bound is 255

In the extreme cases, do not force the hidden 'key' variable to be the asked for type. This obviously doesn't work for ref index.

https://d.puremagic.com/issues/show_bug.cgi?id=10221