Currently the error message looks like fail_compilation/ice10212.d(12): Error: mismatched function return type inference of `int function() pure nothrow @nogc @safe` and `int` and doesn't tell you where it inferred that the return type of the function is int. it should say fail_compilation/ice10212.d(12): Error: mismatched function return type inference of int function() pure nothrow @nogc @safe and int (inferred at fail_compilation/ice10212.d(12))
@thewilsonator created dlang/dmd pull request #10190 "Fix issue 20059 - mismatched function return type inference should gi…" fixing this issue: - Fix issue 20059 - mismatched function return type inference should give location of inferred type https://github.com/dlang/dmd/pull/10190
dlang/dmd pull request #10190 "Fix issue 20059 - mismatched function return type inference should gi…" was merged into master: - 6429854c8df733e18e0ce30a6649f46edaf54871 by Nicholas Lindsay Wilson: Fix issue 20059 - mismatched function return type inference should give location of inferred type https://github.com/dlang/dmd/pull/10190