[Issue 13818] Unhelpful error message for rvalue reference: incompatible types for ((S()) + (S())): 'S' and 'S'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Aug 25 14:19:59 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=13818

--- Comment #2 from Ali Cehreli <acehreli at yahoo.com> ---
There is no issue with both operands being S. The issue seems to be the fact
that the second operand is an rvalue.

So, a helpful message would be "cannot bind rvalue S to ref parameter".

Ali

--


More information about the Digitalmars-d-bugs mailing list