Bug 5875 – cannot implicitly convert delegate to const(delegate)
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2011-04-23T12:35:00Z
Last change time
2013-05-22T09:19:22Z
Assigned to
nobody
Creator
necroment
Comments
Comment #0 by necroment — 2011-04-23T12:35:10Z
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.