[Issue 20368] dmd 2.089.0 Error: expression `main` is `void` and has no value

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 10 03:44:22 UTC 2019


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

Basile-z <b2.temp at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--- Comment #3 from Basile-z <b2.temp at gmx.com> ---
w/o phobos:

---
module mymod;

mixin Bug;

mixin template Bug()
{
   void main()
   {
         alias Attribs = __traits(getAttributes, __traits(getMember, mymod,
"main"));
   }
}   
---

--


More information about the Digitalmars-d-bugs mailing list