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