Mercurial > projects > dstress
annotate compile/inline_03.d @ 1619:bebc7472a832
Fix #7.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:55:30 +0100 |
parents | 5c6df2afb08f |
children |
rev | line source |
---|---|
276 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ nail <nail_member@pathlink.com> | |
6 // @date@ 2005-02-06 | |
7 // @uri@ news:cu5ghl$1cpd$1@digitaldaemon.com | |
8 | |
9 module dstress.compile.inline_03; | |
10 | |
11 struct Struct{ | |
12 | |
13 static Struct bug(){ | |
14 Struct mat; | |
15 | |
16 with (mat){ | |
17 } | |
18 | |
19 return mat; | |
20 } | |
21 | |
22 static Struct check(){ | |
23 Struct a; | |
24 return Struct.bug() * a; | |
25 } | |
26 | |
27 Struct opMul(Struct mat){ | |
28 return mat; | |
29 } | |
30 } | |
31 |