Mercurial > projects > dstress
annotate run/in_out_body_04.d @ 131:460dbdcb3a85
Buchan <kbuchan@xtra.co.nz>
news://opshfzxz0b44buww@simon.homenet
nttp://digitalmars.com/digitalmars.D.bugs:2262
(extended to "class" and "int")
author | thomask |
---|---|
date | Sun, 14 Nov 2004 18:30:46 +0000 |
parents | |
children | a33ad7189d21 |
rev | line source |
---|---|
131 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Buchan <kbuchan@xtra.co.nz> | |
6 // @date@ 2004-11-14 | |
7 // @uri@ news://opshfzxz0b44buww@simon.homenet | |
8 // @url@ nttp://digitalmars.com/digitalmars.D.bugs:2262 | |
9 | |
10 module dstress.run.in_out_body_04; | |
11 | |
12 void outer(){ | |
13 int inner() | |
14 in{ | |
15 assert(1); | |
16 }out (result){ | |
17 assert(result==1); | |
18 }body{ | |
19 return 1; | |
20 } | |
21 assert(inner==1); | |
22 } | |
23 | |
24 int main(){ | |
25 outer(); | |
26 return 0; | |
27 } |