Mercurial > projects > dstress
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_07.d Fri Apr 27 17:22:49 2007 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ tetsuya <tetsuya_member@pathlink.com> +// @date@ 2004-13-13 +// @uri@ news:cpk4vq$1m5a$1@digitaldaemon.com +// @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2546 + +module dstress.run.t.template_07; + +template T(){ + class A { + this() { + T!().a = this; + } + } + A a; +} + +int main(){ + mixin T!(); + return 0; +}