add sources
This commit is contained in:
parent
fcd25eea52
commit
7ce631a648
21 changed files with 548 additions and 2 deletions
|
@ -0,0 +1,11 @@
|
|||
ref int bump(ref int x)
|
||||
{
|
||||
return ++x;
|
||||
}
|
||||
|
||||
unittest
|
||||
{
|
||||
int x = 1;
|
||||
bump(bump(x)); // Два увеличения на 1
|
||||
assert(x == 3);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue