1302
|
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 }
|