[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
Tue Apr 5 06:43:20 UTC 2022


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #13946 "Fix Issue 22969 - Can't mixin name of manifest
constant on right-hand side of alias declaration" was merged into stable:

- 63e226e11764e04220b1a101e09a05d499e98a20 by Boris Carvajal:
  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