diff options
Diffstat (limited to 'libphobos/src/std/array.d')
-rw-r--r-- | libphobos/src/std/array.d | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/libphobos/src/std/array.d b/libphobos/src/std/array.d index daa103a..4584dcc 100644 --- a/libphobos/src/std/array.d +++ b/libphobos/src/std/array.d @@ -170,7 +170,7 @@ if (isIterable!Range && !isAutodecodableString!Range && !isInfinite!Range) /// ditto ForeachType!(typeof((*Range).init))[] array(Range)(Range r) -if (is(Range : U*, U) && isIterable!U && !isAutodecodableString!Range && !isInfinite!Range) +if (is(Range == U*, U) && isIterable!U && !isAutodecodableString!Range && !isInfinite!Range) { return array(*r); } @@ -2294,22 +2294,6 @@ if (isInputRange!RoR && } } -// https://issues.dlang.org/show_bug.cgi?id=10895 -@safe unittest -{ - static class A - { - string name; - alias name this; - this(string name) { this.name = name; } - } - auto a = [new A(`foo`)]; - assert(a[0].length == 3); - auto temp = join(a, " "); - assert(a[0].length == 3); - assert(temp.length == 3); -} - // https://issues.dlang.org/show_bug.cgi?id=14230 @safe unittest { |