diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-27 01:16:01 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-27 01:16:01 +0800 |
commit | 24f2bab098c176acdd58a5dc82ec037b2ded8eeb (patch) | |
tree | 1d58183a931aa69e3231de6fcec5b85f19b06224 /test/diagnostics | |
parent | 92b2a185af2d31dd353ef8a7d57469ee9d584cb7 (diff) | |
download | lua-language-server-24f2bab098c176acdd58a5dc82ec037b2ded8eeb.zip |
disable `unused-local` for empty function
Diffstat (limited to 'test/diagnostics')
-rw-r--r-- | test/diagnostics/common.lua | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua index 1f8a782d..759039a6 100644 --- a/test/diagnostics/common.lua +++ b/test/diagnostics/common.lua @@ -439,12 +439,14 @@ local <!x!> = {} TEST [[ local function f(<!self!>) + return 'something' end f() ]] TEST [[ local function f(<!...!>) + return 'something' end f() ]] @@ -1047,20 +1049,6 @@ end ]] TEST [[ ----@param a number -return function (<!a!>) -end -]] - -TEST [[ ----@meta - ----@param a number -return function (a) -end -]] - -TEST [[ local m = {} function <!m:fff!>() @@ -1703,3 +1691,7 @@ function t:init() end <!t.init()!> ]] + +TEST [[ +return function f(x, y, z) end +]] |