[Issue 7465] Duplicate error message for bad template mixin
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Aug 26 00:42:12 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=7465
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Version|D1 & D2 |D2
Resolution|--- |FIXED
--- Comment #2 from Kenji Hara <k.hara.pg at 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;
}
--
More information about the Digitalmars-d-bugs
mailing list