[Issue 14145] opDispatch not considered when function body doesn't compile

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Feb 7 21:00:22 PST 2015


https://issues.dlang.org/show_bug.cgi?id=14145

--- Comment #4 from Timothee Cour <timothee.cour2 at gmail.com> ---
You're right that UFCS is not root cause; i've updated the title.
indeed, if we remove 'void foo' entirely it errors with "Error: no property
'foo' for type 'A'" instead of erroring with what it should: 
main.d(13): Error: 'writeln' is not defined, perhaps you need to import
std.stdio; ?
main.d(22): Error: template instance main.A.opDispatch!("foo") error
instantiating

--


More information about the Digitalmars-d-bugs mailing list