add sources

This commit is contained in:
Alexander Zhirov 2023-02-26 01:19:12 +03:00
parent fcd25eea52
commit 7ce631a648
21 changed files with 548 additions and 2 deletions

View file

@ -0,0 +1,11 @@
ref int bump(ref int x)
{
return ++x;
}
unittest
{
int x = 1;
bump(bump(x)); // Два увеличения на 1
assert(x == 3);
}