[Issue 20053] mixin doesn't work for many expressions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 16 15:02:25 UTC 2019


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com

--- Comment #1 from Basile-z <b2.temp at gmx.com> ---
Attempt : https://github.com/Basile-z/dmd/pull/3

But there are problems. The MixinExpression takes expressions as argument but
among the stuff that are supposed to be aliased there are not only expressions,
only types that look like expressions work. Concretely

A simple thing like

  alias A1 = mixin("int");

Does not work and instead

  alias Int = int;
  alias A1 = mixin("Int");

must be used.

Otherwise the change is really simple (current work is less than an hour) so I
may propose it anyway.

--


More information about the Digitalmars-d-bugs mailing list