annotate run/template_14.d @ 1576:b3e16c86558e

[Issue 1398] New: GDC doesn't generate correct code <mariusmuja@gmail.com> 2007-08-04 http://d.puremagic.com/issues/show_bug.cgi?id=1398
author thomask
date Thu, 21 Feb 2008 15:20:08 +0000
parents d3a3e0c251d8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
327
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
1 // $HeadURL$
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
2 // $Date$
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
3 // $Author$
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
4
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
5 // @author@ tetsuya <tetsuya_member@pathlink.com>
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
6 // @date@ 2004-13-13
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
7 // @uri@ news:cpk4vq$1m5a$1@digitaldaemon.com
1384
d3a3e0c251d8 nntp: -> http:
thomask
parents: 1383
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2546
327
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
9
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
10 module dstress.run.template_14;
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
11
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
12 template T(){
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
13 class A {
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
14 this() {
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
15 T!().a = this;
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
16 }
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
17 }
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
18 A a;
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
19 }
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
20
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
21 int main(){
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
22 return 0;
43ad4a47cee3 T!().a creates a new instantiation of T that is *not* the mixin
thomask
parents:
diff changeset
23 }