[Issue 5875] New: cannot implicitly convert delegate to const(delegate)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 23 12:38:49 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5875
Summary: cannot implicitly convert delegate to const(delegate)
Product: D
Version: D2
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: necroment at gmail.com
--- Comment #0 from Max Klyga <necroment at gmail.com> 2011-04-23 12:35:10 PDT ---
void main() {
void function() a;
void delegate() b;
const (void function()) c = a; //ok
const (void delegate()) d = b; //error
}
This behavior breaks std.algorithm.move, which makes std.container not work
with delegate types.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list