[Issue 20059] New: mismatched function return type inference should give location of inferred type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 17 07:40:43 UTC 2019


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 at puremagic.com
          Reporter: iamthewilsonator at 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))

--


More information about the Digitalmars-d-bugs mailing list