You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| *S
/home/hejsil/repo/zen/test.zen:7:5: error: found compile log statement
@compileLog(@typeOf(s));
^
/home/hejsil/repo/zen/test.zen:8:9: error: cannot assign to constant
s.a = 2;
As we can see from the error, the @compileLog prints that s is a mutable pointer, yet, you cannot modify it's memory. Change s to be a var instead of const makes this compile.
The text was updated successfully, but these errors were encountered:
As we can see from the error, the
@compileLog
prints thats
is a mutable pointer, yet, you cannot modify it's memory. Changes
to be avar
instead ofconst
makes this compile.The text was updated successfully, but these errors were encountered: