https://issues.dlang.org/show_bug.cgi?id=13595 --- Comment #8 from hsteoh at quickfur.ath.cx --- It looks like a compiler bug, in both cases the type returned by schwartzSort is exactly the same, but somehow the compiler treats it differently. --