Should the compiler issue an error for this code? struct S { } string generate(S t) { return ""; } string generate(S t) { return "huh?"; } It compiles and breaks with multiple definition of '_D1b8generateFS1b1SZAya' at link time. dmd v2.067