From d9fda61fe1e5a9c576594756016f880a9d52e5c8 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Thu, 27 May 2021 08:14:12 +0200 Subject: Pass tests with GDC 10.3 --- source/tanya/container/array.d | 3 ++- tests/tanya/net/tests/iface.d | 3 ++- 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) { -- cgit v1.2.3