dfmt/tests/dip1009.d
Laurent Tréguier 647bb6daa9 Support for DIP1009 (new contracts syntax), #375 (#376)
Support for DIP1009 (new contracts syntax), #375
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-09-10 14:15:14 +02:00

15 lines
225 B
D

int foo(int arg)
in { assert(arg > 0); }
out (result) {assert(result == 0);}
do
{
return 0;
}
int bar(int arg)
in ( arg > 0 )
out(; true)
out/*Major*/ ( /*Tom*/ result /*To ground control*/; result==0)
{
return 0;
}