Hello,
I’m facing an issue.
In the following code, the last instruction doesn’t work, and I can’t figure out why. Is this a bug?
Using sbasic console version, but the same with other flavours
JFD.
func ctest()
local result={}
sub m_meth(arg)
?arg
end
result.meth=@m_meth
return result
end
arg=[]
c=ctest()
c.meth(1) ’ works
c.meth(1.1) ’ works
c.meth(“1”) ’ works
c.meth({}) ’ works
c.meth(arg) ’ works
call c.meth,[] ’ works
c.meth([]) ’ dont works
’ * COMP-ERROR AT Main:17 *
’ Description:
’ Array: Missing ‘)’, (left side of expression)