https://issues.dlang.org/show_bug.cgi?id=14145
Timothee Cour <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from Timothee Cour <[email protected]> --- I forgot to mention: the naked 'writeln' was intentional in this bug report. the error occurs when the template body of opDispatch is not compilable (eg as in the example, import std.stdio is missing). The correct behavior IMO should be to say: error : could not resolve writeln. Furthermore to counter your argument saying this is not a bug: replace 'void fun(){}' by 'void foo(A a){}' now it compiles whereas is shouldn't. --
