[Issue 18973] @disable on const toHash causes unresolved symbol error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 9 19:13:50 UTC 2020


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

elpenguino+D at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #2 from elpenguino+D at gmail.com ---
Incorrect. a @disabled method does not need a body, as no references to it are
ever emitted. You can observe this for yourself by simply renaming toHash in
the example to something without special semantics. Or by removing const. Even
a non- at disable'd method without a body doesn't generate linker errors unless
you try to call it.

--


More information about the Digitalmars-d-bugs mailing list