mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
Silence warning: struct Rebindable has method toHash, however it cannot be called with const(Rebindable!(const(C))) this.
This commit is contained in:
parent
6a1a06cd36
commit
bb7bd70fbf
2 changed files with 2 additions and 2 deletions
|
@ -1790,7 +1790,7 @@ if (isInputRange!R)
|
|||
assert(equal(g3, [ tuple(1, 2u), tuple(2, 2u) ]));
|
||||
|
||||
interface I {}
|
||||
class C : I {}
|
||||
class C : I { override size_t toHash() const nothrow @safe { return 0; } }
|
||||
const C[] a4 = [new const C()];
|
||||
auto g4 = a4.group!"a is b";
|
||||
assert(g4.front[1] == 1);
|
||||
|
|
|
@ -1979,7 +1979,7 @@ private template ReverseTupleSpecs(T...)
|
|||
|
||||
@safe unittest
|
||||
{
|
||||
class C {}
|
||||
class C { override size_t toHash() const nothrow @safe { return 0; } }
|
||||
Tuple!(Rebindable!(const C)) a;
|
||||
Tuple!(const C) b;
|
||||
a = b;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue