[Issue 11095] New: mixed in mixin templates not instantiated in templates?
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Sep 22 05:38:25 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11095
Summary: mixed in mixin templates not instantiated in
templates?
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: simendsjo at gmail.com
--- Comment #0 from simendsjo <simendsjo at gmail.com> 2013-09-22 05:38:24 PDT ---
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'
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list