http://d.puremagic.com/issues/show_bug.cgi?id=174 ------- Comment #1 from lovesyao at hotmail.com 2006-11-18 21:20 ------- I also met this bug. More simple testcase: class Test{ template test(){ const int test=1; } } void main(){ assert(Test.test!()==1);//ok assert((new Test).test!()==1);//failed } --