We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testcase:
clue code:
local a = nil local b = a || {"123"} print(b[1])
expected result:
local a = nil local b = a or {"123"} print(b[1])
clue v2.5.1 with run error: Error in file "test.clue" at line 3! Error: "Operator '||' has invalid right hand token"
Of course this error can be easily avoided:
local a = nil local c = {"123"} local b = a || c print(b[1])
I'm not sure if the syntax of clue doesn't support || followed with table {}
||
The text was updated successfully, but these errors were encountered:
local b = a || ({...}) might work too
local b = a || ({...})
Sorry, something went wrong.
local b = a || {...} is now valid syntax in Clue 2.5.2, so this issue is resolved
local b = a || {...}
No branches or pull requests
testcase:
clue code:
expected result:
clue v2.5.1 with run error:
Error in file "test.clue" at line 3!
Error: "Operator '||' has invalid right hand token"
Of course this error can be easily avoided:
I'm not sure if the syntax of clue doesn't support
||
followed with table {}The text was updated successfully, but these errors were encountered: