Bug 20059 – mismatched function return type inference should give location of inferred type

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-07-17T07:40:43Z
Last change time
2020-03-21T03:56:43Z
Keywords
diagnostic, pull
Assigned to
No Owner
Creator
Nicholas Wilson

Comments

Comment #0 by iamthewilsonator — 2019-07-17T07:40:43Z
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))
Comment #1 by dlang-bot — 2019-07-17T08:10:04Z
@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
Comment #2 by dlang-bot — 2019-07-18T05:22:49Z
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