feat: add object escaping on assing to variable in outer env

This commit is contained in:
samsonium
2026-10-29 17:46:56 +03:00
parent 2cf96d06c6
commit a885746fdd
5 changed files with 39 additions and 9 deletions
+12
View File
@@ -0,0 +1,12 @@
class SomeObj {}
SomeObj obj;
for (int i = 0; i < 1; i = i + 1)
{
obj = new SomeObj;
}
bool not_null = (obj != null);
printline($"The object {obj} is not null? - {not_null}");