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
This Lua code fails, but it is not an issue because the extra parentheses are useless
(io.stdout):write('one\n') (io.stdout):write('two\n') -- attempt to call a FILE* value
io.stdout:write('one\n') io.stdout:write('two\n') -- OK
Now, with Teal, this kind of parentheses is used by cast (and could become widely used)
local record Obj meth1: function(self: Obj) end local t = {} do (t as Obj):meth1() (t as Obj):meth1() -- not a function: nil end
The generated Lua looks like:
local t = {} do (t):meth1()( t):meth1() end
The text was updated successfully, but these errors were encountered:
The answer is the few used ;
;
Sorry, something went wrong.
Not sure what we can do about this. It's a known gotcha for Lua...
Filed this one under the "semantics" label because it's the one we use for "surprising behaviors", but it really should be under "syntax" :)
No branches or pull requests
This Lua code fails, but it is not an issue because the extra parentheses are useless
Now, with Teal, this kind of parentheses is used by cast (and could become widely used)
The generated Lua looks like:
The text was updated successfully, but these errors were encountered: