[Issue 10982] Misleading diagnostic for missing member function overload: "Error: inout method ... is not callable using a const object"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 8 06:49:13 UTC 2019


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

Ali Cehreli <acehreli at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #3 from Ali Cehreli <acehreli at yahoo.com> ---
Works as expected with 2.088. Now both errors are reported equally:

deneme.d(571): Error: function `deneme.S.is_const(int _param_0) const` is not
callable using argument types `() const`
deneme.d(571):        missing argument for parameter #1: `int _param_0`
deneme.d(572): Error: function `deneme.S.is_inout(int _param_0) inout` is not
callable using argument types `() const`
deneme.d(572):        missing argument for parameter #1: `int _param_0`

--


More information about the Digitalmars-d-bugs mailing list