digitalmars.D.bugs - [Issue 11386] New: Error Message when lvalue required doesn't mention mismatch
- d-bugmail puremagic.com (30/30) Oct 30 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11386
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 puremagic.com ReportedBy: Jesse.K.Phillips+D gmail.com 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: -------
Oct 30 2013