Bug 11095 – mixed in mixin templates not handled as eponymous member

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-09-22T05:38:24Z
Last change time
2023-03-27T12:07:36Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
simendsjo

Comments

Comment #0 by simendsjo — 2013-09-22T05:38:24Z
Using dmd head mixin template B() { enum A = true; } template A() { mixin B; // shouldn't this just insert B? } template C() { enum C = true; } void main() { static assert(C!() == true); // ok static assert(A!() == true); } t.d(17): Error: void has no value t.d(17): Error: incompatible types for ((A!()) == (true)): 'void' and 'bool'
Comment #1 by Marco.Leise — 2014-01-22T07:10:39Z
Looks like Issue 1514 to me.
Comment #2 by razvan.nitu1305 — 2023-03-27T12:07:36Z
*** This issue has been marked as a duplicate of issue 1514 ***