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
julia>using NiLang
julia>@ifunctionf(x)
y ←0end
julia>@ifunctionf(x)
x ←0# if left side is already defined, should errorend
@thautwarm , the second function should error at the variable analysis stage, however, NiLang is playing lazy to allow it pass. Wish to hear your advices about how to make the second function error correctly. I have a naive solution that records the input arguments and allocated variables. Is it possible to also detect global variables?
forbid
x ← expr
ifx
is already defined in the local scope.The text was updated successfully, but these errors were encountered: