mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-26 05:09:56 +03:00

Support for DIP1009 (new contracts syntax), #375 merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
15 lines
225 B
D
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;
|
|
}
|