[Issue 10511] Unhelpful error messages with a const opDispatch

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 8 13:45:32 UTC 2018


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |FIXED

--- Comment #4 from RazvanN <razvan.nitu1305 at gmail.com> ---
The code from the original bug report fails compiling with:

test.d(2): Error: function is10511.Foo.opDispatch!"bar".opDispatch without this
cannot be const
test.d(7): Error: template instance is10511.Foo.opDispatch!"bar" error
instantiating

Which the correct error message.
Closing as fixed.

--


More information about the Digitalmars-d-bugs mailing list