digitalmars.D.bugs - [Issue 16529] New: string mixins break ifti
- via Digitalmars-d-bugs (30/30) Sep 23 2016 https://issues.dlang.org/show_bug.cgi?id=16529
https://issues.dlang.org/show_bug.cgi?id=16529 Issue ID: 16529 Summary: string mixins break ifti Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: john.loughran.colvin gmail.com template foo(T) { mixin(`void foo(T t) {}`); } template bar(T) { void bar(T t) {} } void main() { foo(3); // fails // ifti.d(13): Error: template ifti.foo cannot deduce function from argument types !()(int), candidates are: // ifti.d(1): ifti.foo(T) bar(3); // OK } --
Sep 23 2016