[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
Fri Nov 8 11:45:06 UTC 2019


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

--- Comment #2 from Andrea Fontana <trikkuz at gmail.com> ---
Reduced:

module mymod;

mixin Bug;

template Bug()
{
   void main()
   {
         import std;
         alias bug = hasUDA!(__traits(getMember, mymod, "main"), "myuda");
   }
}

--


More information about the Digitalmars-d-bugs mailing list