www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20059] New: mismatched function return type inference should

https://issues.dlang.org/show_bug.cgi?id=20059

          Issue ID: 20059
           Summary: mismatched function return type inference should give
                    location of inferred type
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: iamthewilsonator hotmail.com

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))

--
Jul 17 2019