summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2021-05-27 08:14:12 +0200
committerEugen Wissner <belka@caraus.de>2021-05-27 08:14:12 +0200
commitd9fda61fe1e5a9c576594756016f880a9d52e5c8 (patch)
tree3defdee891df4815451d194a99654cdd0ee84fae
parent4f4854429704624280a70c698dbc03724e55d988 (diff)
downloadtanya-d9fda61fe1e5a9c576594756016f880a9d52e5c8.tar.gz
Pass tests with GDC 10.3
-rw-r--r--source/tanya/container/array.d3
-rw-r--r--tests/tanya/net/tests/iface.d3
2 files changed, 4 insertions, 2 deletions
diff --git a/source/tanya/container/array.d b/source/tanya/container/array.d
index 6031c21..c6d06ad 100644
--- a/source/tanya/container/array.d
+++ b/source/tanya/container/array.d
@@ -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);
}
diff --git a/tests/tanya/net/tests/iface.d b/tests/tanya/net/tests/iface.d
index c77692a..7726b0e 100644
--- a/tests/tanya/net/tests/iface.d
+++ b/tests/tanya/net/tests/iface.d
@@ -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)
{