blob: 465e74c667483a5704c35a265c1705b5637b8910 [file] [log] [blame]
module imports.template_ovs1;
/***************************************************/
// https://issues.dlang.org/show_bug.cgi?id=1900
// template overload set
auto foo1900a(int num) { return 1; }
auto foo1900b(T)(T arg) if (is(T : const(char)[])) { return 2; }
auto bar1900a(T)(T arg) if (is(T : double)) { return 1; }
auto bar1900b(T)(T arg) if (is(T : const(char)[])) { return 2; }
auto baz1900(T)(T arg) if (is(T : double)) { return 1; }
auto baz1900(T)(T arg) if (is(T : int[int])) { return 2; }
auto bad1900(string op)() if (op == "++") { return 1; }
mixin template Mix1900_A()
{
auto mixfooa() { return 1; }
auto mixfoob(T)(T) { return 2; }
mixin Mix1900_SubA;
}
mixin template Mix1900_SubA()
{
auto mixsubfooa() { return 1; }
auto mixsubfoob(T)(T) { return 2; }
}
auto merge1900(T)(int)
{
return 1;
}
/***************************************************/
// https://issues.dlang.org/show_bug.cgi?id=1900
class AClass1900 {}
template Traits1900(T : AClass1900) { enum name = "AClass"; }
void Value1900a() {}
template Value1900a(T) if (is(T == double)) { enum Value1900a = 1; }
template Value1900b(T) if (is(T == double)) { enum Value1900b = 1; }
void Value1900b() {}
/***************************************************/
// https://issues.dlang.org/show_bug.cgi?id=8352
Range remove8352a(alias pred, Range)(Range range) { return range; }
void remove8352b(in char[] name) {}
/***************************************************/
// https://issues.dlang.org/show_bug.cgi?id=10658
template Val10658(int n) { enum Val10658 = 1; }