[Issue 8129] New: Cannot deduce template function when using UFCS and having a delegate(T) as first argument and an empty function.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 21 02:13:10 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8129
Summary: Cannot deduce template function when using UFCS and
having a delegate(T) as first argument and an empty
function.
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: meh at paranoici.org
--- Comment #0 from meh. <meh at paranoici.org> 2012-05-21 02:14:45 PDT ---
Created an attachment (id=1108)
Reduced testcase
I'm getting this compilation error with the attached code.
/tmp/lol.d(33): Error: template lol.lol does not match any function template
declaration
/tmp/lol.d(21): Error: template lol.lol cannot deduce template function from
argument types !(B)(OMG,void)
/tmp/lol.d(33): Error: template instance lol!(B) errors instantiating template
--
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