diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-01-04 20:30:17 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-01-04 20:30:17 +0800 |
commit | a927549a7a32d173eb686022f3cf1bfad9815f16 (patch) | |
tree | 7f61d2094d777c60eb6f408c01a82a92cb1c72a7 /test/diagnostics/init.lua | |
parent | e006a5a6c0cd566650836ceccbf98d4215449bce (diff) | |
download | lua-language-server-a927549a7a32d173eb686022f3cf1bfad9815f16.zip |
`unused-function` checks recursive
Diffstat (limited to 'test/diagnostics/init.lua')
-rw-r--r-- | test/diagnostics/init.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua index 4ec93acf..8a89179f 100644 --- a/test/diagnostics/init.lua +++ b/test/diagnostics/init.lua @@ -115,6 +115,21 @@ local <!x!> <!x!> = <!function () end!> ]] +TEST([[ +<!local function x() +end!> +<!local function y() + x() +end!> +]], +[[ +local function x() +end +local function <!y!>() + x() +end +]] +) TEST [[ print(<!x!>) |