Mercurial > projects > dstress
view run/t/template_class_19_A.d @ 1613:70a23cb6a616
Fix incorrect run.t.throw_07_A/B tests
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 10 May 2009 12:10:34 +0200 |
parents | ec017b93fe95 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Nazo Humei <lovesyao@hotmail.com> // @date@ 2006-11-26 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=524 // @desc@ [Issue 524] Compiler crash when compiling module dstress.run.t.template_class_19_A; int status; class Outer{ void test(T)() { status++; new Inner!(T)(); } class Inner(T) { void test(){ status += 100; new Inner!(T)(); } } } int main(){ Outer o = new Outer(); o.test!(int); if(status != 1){ assert(0); } return 0; }