annotate run/t/template_07.d @ 1519:f71bd33bb278

updated to DMD-1.013
author thomask
date Fri, 27 Apr 2007 17:22:49 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1519
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
1 // $HeadURL$
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
2 // $Date$
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
3 // $Author$
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
4
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
5 // @author@ tetsuya <tetsuya_member@pathlink.com>
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
6 // @date@ 2004-13-13
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
7 // @uri@ news:cpk4vq$1m5a$1@digitaldaemon.com
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2546
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
9
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
10 module dstress.run.t.template_07;
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
11
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
12 template T(){
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
13 class A {
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
14 this() {
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
15 T!().a = this;
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
16 }
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
17 }
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
18 A a;
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
19 }
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
20
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
21 int main(){
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
22 mixin T!();
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
23 return 0;
f71bd33bb278 updated to DMD-1.013
thomask
parents:
diff changeset
24 }