[Issue 11386] New: Error Message when lvalue required doesn't mention mismatch

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 30 12:16:49 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11386

           Summary: Error Message when lvalue required doesn't mention
                    mismatch
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: Jesse.K.Phillips+D at gmail.com


--- Comment #0 from Jesse Phillips <Jesse.K.Phillips+D at gmail.com> 2013-10-30 12:16:47 PDT ---
When the function requires an lvalue (due to taking a ref) the error does not
specifically call this out.

void main() {
    int v = fail(val);
}

string val() {
    return "3";
}

void fail(ref string v) {
}

--------------

test.d(2): Error: function test.fail (ref string v) is not callable using
argument types (string)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list