annotate run/bug_20050330_B.d @ 1559:ec5e144583ea

D1 -> D2 : 1/N
author thomask
date Sun, 19 Aug 2007 19:11:54 +0000
parents b8c0195059d9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
491
f6a24d1475f2 template loop
thomask
parents:
diff changeset
1 // $HeadURL$
f6a24d1475f2 template loop
thomask
parents:
diff changeset
2 // $Date$
f6a24d1475f2 template loop
thomask
parents:
diff changeset
3 // $Author$
f6a24d1475f2 template loop
thomask
parents:
diff changeset
4
f6a24d1475f2 template loop
thomask
parents:
diff changeset
5 // @author@ Regan Heath <regan@netwin.co.nz>
f6a24d1475f2 template loop
thomask
parents:
diff changeset
6 // @date@ 2005-03-30
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 520
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3385
491
f6a24d1475f2 template loop
thomask
parents:
diff changeset
8
f6a24d1475f2 template loop
thomask
parents:
diff changeset
9 module dstress.run.bug_20050330_B;
f6a24d1475f2 template loop
thomask
parents:
diff changeset
10
f6a24d1475f2 template loop
thomask
parents:
diff changeset
11 template Blah(int a, alias B){
520
8efb8492a374 removed superflowed alias
thomask
parents: 491
diff changeset
12 mixin Blah!(a-1, B);
491
f6a24d1475f2 template loop
thomask
parents:
diff changeset
13 }
f6a24d1475f2 template loop
thomask
parents:
diff changeset
14
f6a24d1475f2 template loop
thomask
parents:
diff changeset
15 template Blah(int a:0, alias B){
f6a24d1475f2 template loop
thomask
parents:
diff changeset
16 int x(){
f6a24d1475f2 template loop
thomask
parents:
diff changeset
17 return a;
f6a24d1475f2 template loop
thomask
parents:
diff changeset
18 }
f6a24d1475f2 template loop
thomask
parents:
diff changeset
19 }
f6a24d1475f2 template loop
thomask
parents:
diff changeset
20
f6a24d1475f2 template loop
thomask
parents:
diff changeset
21 int main(){
f6a24d1475f2 template loop
thomask
parents:
diff changeset
22 int a;
f6a24d1475f2 template loop
thomask
parents:
diff changeset
23 mixin Blah!(5,a);
f6a24d1475f2 template loop
thomask
parents:
diff changeset
24 return 0;
f6a24d1475f2 template loop
thomask
parents:
diff changeset
25 }