[Issue 21740] Typeof mixin regression with v2.096

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 21 16:53:03 UTC 2021


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

Boris Carvajal <boris2.9 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |boris2.9 at gmail.com

--- Comment #4 from Boris Carvajal <boris2.9 at gmail.com> ---
Regression?

I would call it 'progression', the behavior is totally more consistent now.

---
void foo() {}
pragma(msg, typeof(foo()));
pragma(msg, typeof(mixin("foo()")));
pragma(msg, typeof(mixin(foo())));
pragma(msg, typeof(mixin(foo().stringof)));
static assert(is(typeof(foo()) == void));
static assert(is(typeof(mixin("foo()")) == void));
static assert(is(typeof(mixin(foo())) == void));
static assert(is(typeof(mixin(foo().stringof)) == void));
---

--


More information about the Digitalmars-d-bugs mailing list