[Issue 7585] functions in templates inferred as delegate

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 5 13:32:59 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=7585



--- Comment #13 from timon.gehr at gmx.ch 2013-02-05 13:32:58 PST ---
(In reply to comment #12)
> (In reply to comment #11)
> > (In reply to comment #10)
> > > What's the state of this? OP sample works, but in Kenji's Comment #1 sample the
> > > line which fails is:
> > > 
> > > Callback cb3 = &Wrap!(f3);      // NG
> > 
> > It is to be expected that this fails. If the OP sample works, I assume this is
> > fixed.
> 
> I guess he also expects this to fail then:
> 
> Callback cb3 = &Wrap!((){});    // NG
> 
> but it doesn't fail.

This should work. What he wanted to show is that (){ } currently behaves like
f3, while it should behave like f1 or f2.

-- 
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