upd: new test in borrow-move example

This commit is contained in:
samsonium
2026-10-17 20:20:54 +03:00
parent f1e97b94a4
commit b48c196509
+11
View File
@@ -17,6 +17,14 @@ fn doSome(A a) A
return a;
}
fn doSomeNew() A
{
if (1 == 1)
{
return new A;
}
}
A a = new A;
a.some = 0;
printline(a);
@@ -24,3 +32,6 @@ printline(a);
a = doSome(a);
printline(a);
b = doSomeNew();
printline(b);