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
用来标记该函数是抛出异常,永远不返回.
当前内建只支持了函数error
typescript keyword never
never
function fail(message: string): never { throw new Error(message); }
or c++ attributue noreturn
noreturn
[[ noreturn ]] void f() { throw "error"; }
so, lua maybe like:
---@noreturn ---@never local function h()end
The text was updated successfully, but these errors were encountered:
你可以现在 runtime.special 里设置你的函数为 error 。 我目前不是通过分析函数定义来确定是否永远不返回的。
runtime.special
error
Sorry, something went wrong.
👌🏻,稍微有一点美中不足的地方,能不能改进一下,runtime.special设定不能识别表中的函数.比如说io.exit这种
io.exit
setting runtime.special supports fields
b04dee9
#1484
No branches or pull requests
用来标记该函数是抛出异常,永远不返回.
当前内建只支持了函数error
typescript keyword
never
or c++ attributue
noreturn
so, lua maybe like:
The text was updated successfully, but these errors were encountered: