August 26, 2014
https://issues.dlang.org/show_bug.cgi?id=7465

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
            Version|D1 & D2                     |D2
         Resolution|---                         |FIXED

--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> ---
The duplication is disappeared with 2.066.

And the file fail_compilation/fail10.d is now properly testing the diagnostic.

/*
TEST_OUTPUT:
---
fail_compilation/fail10.d(18): Error: mixin Foo!y cannot resolve forward
reference
---
*/

template Foo(alias b)
{
    int a()
    {
        return b;
    }
}

void test()
{
    mixin Foo!(y) y;
}

--