https://issues.dlang.org/show_bug.cgi?id=14145
--- Comment #4 from Timothee Cour <[email protected]> --- 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 --
