Bug 11386 – Error Message when lvalue required doesn't mention mismatch

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-30T12:16:47Z
Last change time
2024-12-13T18:13:27Z
Assigned to
No Owner
Creator
Jesse Phillips
Moved to GitHub: dmd#18705 →

Comments

Comment #0 by Jesse.K.Phillips+D — 2013-10-30T12:16:47Z
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)
Comment #1 by robert.schadek — 2024-12-13T18:13:27Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18705 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB