blob: 97dc88d551e19634ee0b2ff4817d285c5c192101 [file] [log] [blame]
// https://bugzilla.gdcproject.org/show_bug.cgi?id=31
// { dg-do compile }
class RedBlackTree(T, alias less)
{
struct Range
{
@property empty() { }
}
Range opSlice()
{
return Range();
}
}
auto redBlackTree(alias less, E)()
{
return new RedBlackTree!(E, less);
}
void test31()
{
redBlackTree!((a){}, double)();
}