[Issue 809] New: lazy argument convert to delegate
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 7 02:44:59 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=809
Summary: lazy argument convert to delegate
Product: D
Version: 1.00
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: cpunion at gmail.com
void test(lazy int dg){
int delegate() dg_ = dg;
}
Compile error:
$ dmd -c t.d
t.d(2): Error: cannot implicitly convert expression ((dg)()) of type int to int
delegate()
--
More information about the Digitalmars-d-bugs
mailing list