Crash when using a local variable directly initialized with a string containing commas

Hello,

I am facing a bug when using a local variable directly initialized with a string containing commas. See the example below.

a=“a,b” ’ OK
const b=“a,b” ’ OK
local c
c=“a,b” ’ OK
local d=“a,b” ’ Crash

  • COMP-ERROR AT Main:5 *
    Description:
    Undefined SUB/FUNC code: b

Linux - Console

Can you reproduce it?

For some reason the presence of comma inside the quoted string is confusing the parser. This only occurs with a combination of the “local” declaration and inline assignment of the variable to a string. Thanks for reporting the bug!