aBothe/Mono-D — Issue #51: Mixin Templates incorrectly underlined as error
Author: PhilipWitte
Created: 2012-02-05 10:30:52+00:00
State: open

````D
interface ITalker
{
void talk();
}

static struct Talker
{
mixin template Man()
{
void talk() { writeln("Hi"); }
}

mixin template Woman()
{
void talk() { writeln("OMG, have you seen my shoes!? Let me tell you in detail..."); }
}
}

mixin template Silent()
{
void talk() { writeln("..."); }
}

class Person : ITalker
{
mixin Talker.Man; // builds, but underlined as error
mixin Silent; // isn't underlined (correct)
}
````