[Issue 22969] Can't mixin name of manifest constant on right-hand side of alias declaration

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 4 11:05:21 UTC 2022


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

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
@BorisCarvajal created dlang/dmd pull request #13946 "Fix Issue 22969 - Can't
mixin name of manifest constant on right-hand side of alias declaration" fixing
this issue:

- Fix Issue 22969 - Can't mixin name of manifest constant on right-handside of
alias declaration

  Remove an unnecessary `typeToExpression` conversion call that forced `mixin`
to
  be resolved via expression semantic (expanding enum constants when it
shouldn't).
  This was a change I wanted to make some time ago but an early error somewhere
  in the type semantic prevented me (fixed here).
  Also a duplicated code in `traits.d` to handle mixins is removed (it was a
copy
  of `typesem.d:compileTypeMixin` function).

https://github.com/dlang/dmd/pull/13946

--


More information about the Digitalmars-d-bugs mailing list