Dear Ali,

thank you for helping! Problem happens when passing by value as in param.

Change 'foo' to this:
----
ref S foo(ref S s)
{
    s.val+=1;
    return s;
}
----

Reply via email to