diff options
Diffstat (limited to 'test/diagnostics/init.lua')
-rw-r--r-- | test/diagnostics/init.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua index aa921c19..f5ea6964 100644 --- a/test/diagnostics/init.lua +++ b/test/diagnostics/init.lua @@ -76,7 +76,7 @@ local <!x!> ]] TEST [[ -local x <close> +local x <close> = print ]] TEST [[ @@ -319,10 +319,16 @@ return [[ ]] ]=] +config.config.diagnostics.disable['close-non-object'] = true TEST [[ local _ <close> = function () end ]] +config.config.diagnostics.disable['close-non-object'] = nil +TEST [[ +local _ <close> = <!1!> +]] + config.config.diagnostics.disable['unused-local'] = true TEST [[ local f = <!function () end!> |