blob: c2eb2dd3b7b52e5c4b417fa5a1f49940a23cd93e [file] [log] [blame]
// https://bugzilla.gdcproject.org/show_bug.cgi?id=71
// { dg-do compile }
struct CanonicalHuffman
{
int[] table;
void print()
{
table.sort!(a => a);
}
}
struct SortedRange(alias pred )
{
auto trisect() { }
}
auto assumeSorted(alias pred , R)(R )
{
return SortedRange!pred();
}
SortedRange!(less) sort(alias less, Range)(Range r)
{
return assumeSorted!less(r);
}