Mercurial > projects > dstress
annotate run/mixin_05.d @ 1619:bebc7472a832
Fix #7.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:55:30 +0100 |
parents | d3a3e0c251d8 |
children |
rev | line source |
---|---|
299 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Ilya Zaitseff <sark7@mail333.com> | |
6 // @date@ 2005-02-22 | |
7 // @uri@ news:opsmlwgpo1aaezs2@robingood | |
1384 | 8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3034 |
299 | 9 |
10 module dstress.run.mixin_05; | |
11 | |
12 template T(){ | |
13 int x; | |
14 } | |
15 | |
16 struct S{ | |
17 mixin T; | |
18 } | |
19 | |
20 const S s = { x:2 }; | |
21 | |
22 int main(){ | |
23 assert(s.x==2); | |
24 return 0; | |
25 } |