Mercurial > projects > dstress
annotate compile/t/template_41_H.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 |
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_D; |
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 template T1(){ |
daa894e9fb12
[Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff
changeset
|
12 template T2() { |
daa894e9fb12
[Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff
changeset
|
13 template T3(){ |
daa894e9fb12
[Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff
changeset
|
14 const int T3 = 3; |
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 T1!().T2!().T3 x; |
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(x!() == 3); |