annotate compile/t/template_41_A.d @ 1320:daef239f37cf

sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
author thomask
date Sun, 31 Dec 2006 19:59:08 +0000
parents daa894e9fb12
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1096
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
1 // $HeadURL$
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
2 // $Date$
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
3 // $Author$
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
4
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
5 // @author@ Bruno Medeiros <daiphoenix@lycos.com>
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
6 // @date@ 2006-08-02
1320
daef239f37cf sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents: 1096
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=276
1096
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
8
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
9 module dstress.compile.t.template_41_A;
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
10
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
11 struct S{
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
12 template T1(){
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
13 template T2(int i) {
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
14 const int T2 = i + 1;
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
15 }
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
16 }
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
17 }
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
18
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
19 alias S.T1!().T2 inc;
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
20
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
21 static assert(inc!(2) == 3);