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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Jesse Phillips <[email protected]> 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: -------