D-Programming-Language/phobos — pull request #849 by monarchdodra (2012-10-07 14:27:50+00:00)
Title: Fix for fill(value) (again)

As pointed out by @desnis-sh
https://github.com/D-Programming-Language/phobos/pull/838#issuecomment-9206817

The alias T was being used in a conditional if.

```D
void fill(Range, Value)(Range range, Value filler)
if (isInputRange!Range && is(typeof(range.front = filler)))
{
alias ElementType!Range T; //***RE-INSERTED THIS***

static if (is(typeof(range[] = filler)))
{
range[] = filler;
}
else static if (is(typeof(range[] = T(filler)))) //***TO FIX THIS***
{
range[] = T(filler); //***SO THIS WOULD WORK***
}
else
{
for ( ; !range.empty; range.popFront() )
{
range.front = filler;
}
}
}
```