diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-11-07 21:00:59 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-11-07 21:00:59 +0800 |
commit | 34d32a478bcd066baf49ccf36f5f26a132cbfab8 (patch) | |
tree | b0efdb7103dde9cf5b7f16f3a24886bf555708a7 /test | |
parent | 0618f3793e2687e5e15e9d5a51838d61b306dec5 (diff) | |
download | lua-language-server-34d32a478bcd066baf49ccf36f5f26a132cbfab8.zip |
fix warning
Diffstat (limited to 'test')
-rw-r--r-- | test/diagnostics/type-check.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/diagnostics/type-check.lua b/test/diagnostics/type-check.lua index a8525ab0..267c3a27 100644 --- a/test/diagnostics/type-check.lua +++ b/test/diagnostics/type-check.lua @@ -991,6 +991,18 @@ end ]] TEST [[ +---@type fun():number? +local function f() +end +]] + +TEST [[ +---@type fun():... +local function f() +end +]] + +TEST [[ ---@type fun():number local function f() return 1, <!true!> |