Bug 19462 – A noisy warning about toHash will occur
Status
RESOLVED
Resolution
WORKSFORME
Severity
regression
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2018-12-03T10:51:20Z
Last change time
2019-02-08T20:59:01Z
Assigned to
No Owner
Creator
SHOO
Comments
Comment #0 by zan77137 — 2018-12-03T10:51:20Z
Noisy warnings now occur with this code (in dmd/druntime/Phobos master):
------------------------------------
struct Foo
{
Object _p;
alias _p this;
}
struct Bar
{
import std.typecons: Proxy;
Object foo;
mixin Proxy!foo;
}
void main(){}
------------------------------------
Maybe, the origin is hashOf template function called by Proxy.
Comment #1 by n8sh.secondary — 2019-02-08T20:59:01Z
I'm not currently getting any warning messages when compiling that code so it seems to have been fixed by changes either in druntime or Phobos.