Bug 14213 – Strange deprecated message in std.typecons.Proxy with using method
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-02-21T17:15:00Z
Last change time
2017-07-19T17:42:28Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
zan77137
Comments
Comment #0 by zan77137 — 2015-02-21T17:15:35Z
This code doesn't work(git HEAD):
-----------------------
import std.typecons, std.stdio;
struct A
{
int foo(){return 1;}
mixin Proxy!foo; // std\typecons.d(4408): Deprecation: casting from int delegate() to const(void*) is deprecated
}
struct B
{
int foo(){return 1;}
alias foo this; // OK
}
void main()
{
A a;
B b;
writeln(a + 1);
writeln(b + 2);
}
Comment #1 by dlang-bugzilla — 2015-03-04T04:14:14Z