Pass tests with GDC 10.3

This commit is contained in:
Eugen Wissner 2021-05-27 08:14:12 +02:00
parent 4f48544297
commit d9fda61fe1
Signed by: belka
GPG Key ID: A27FDC1E8EE902C0
2 changed files with 4 additions and 2 deletions

View File

@ -1123,7 +1123,8 @@ struct Array(T)
}
/// ditto
bool opEquals(Range that)
bool opEquals(R)(R that)
if (is(R == Range))
{
return equal(opIndex(), that);
}

View File

@ -4,13 +4,14 @@
module tanya.net.tests.iface;
import std.algorithm.comparison;
import std.utf;
import tanya.net.iface;
@nogc nothrow @safe unittest
{
version (linux)
{
assert(equal(indexToName(1)[], "lo"));
assert(equal(indexToName(1)[], "lo".byChar));
}
else version (Windows)
{