/*
TEST_OUTPUT:
---
fail_compilation/diag13528.d(13): Error: value of 'this' is not known at compile time
fail_compilation/diag13528.d(13):        while evaluating pragma(msg, __traits(getMember, A, "foo"))
---
*/

mixin template MyTemplate()
{
    void foo()
    {
        pragma(msg, __traits(getMember, typeof(this), "foo"));
    }
}

class A
{
    mixin MyTemplate;
}

void main()
{
    auto a = new A();
}
