[Issue 1963] -H creates broken headers
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 11 09:18:49 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1963
------- Comment #3 from chris at dprogramming.com 2008-04-11 11:18 -------
Found another problem with -H:
template Foo()
{
void bar()
{
}
}
class Baz
{
mixin Foo foo;
alias foo.bar baz;
}
// -H output:
// D import file generated from 'H.d'
template Foo()
{
void bar()
{
}
}
class Baz
{
mixin Foo!(); // Note: no mixin identifier foo as it should.
alias foo.bar baz; // Now foo doesn't exist, error.
}
--
More information about the Digitalmars-d-bugs
mailing list