comparison run/t/template_class_19_A.d @ 1302:ec017b93fe95

[Issue 524] Compiler crash when compiling Nazo Humei <lovesyao@hotmail.com> 2006-11-26 http://d.puremagic.com/issues/show_bug.cgi?id=524
author thomask
date Sun, 31 Dec 2006 02:00:00 +0000
parents
children
comparison
equal deleted inserted replaced
1301:c940cb1138cd 1302:ec017b93fe95
1 // $HeadURL$
2 // $Date$
3 // $Author$
4
5 // @author@ Nazo Humei <lovesyao@hotmail.com>
6 // @date@ 2006-11-26
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=524
8 // @desc@ [Issue 524] Compiler crash when compiling
9
10 module dstress.run.t.template_class_19_A;
11
12 int status;
13
14 class Outer{
15 void test(T)() {
16 status++;
17 new Inner!(T)();
18 }
19
20 class Inner(T) {
21 void test(){
22 status += 100;
23 new Inner!(T)();
24 }
25 }
26 }
27
28 int main(){
29 Outer o = new Outer();
30 o.test!(int);
31 if(status != 1){
32 assert(0);
33 }
34
35 return 0;
36 }