From 9902665e2a4fa9b69726df2ccce997312750c2a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 12 Jul 2022 16:04:44 +0800 Subject: fix --- test/diagnostics/type-check.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/diagnostics') diff --git a/test/diagnostics/type-check.lua b/test/diagnostics/type-check.lua index 082d0b41..243b69ff 100644 --- a/test/diagnostics/type-check.lua +++ b/test/diagnostics/type-check.lua @@ -694,5 +694,12 @@ mt.x = 1 mt.x = nil ]] +TEST [[ +---@type string[] +local t + + = 'xxx' +]] + config.remove(nil, 'Lua.diagnostics.disable', 'unused-local') config.remove(nil, 'Lua.diagnostics.disable', 'undefined-global') -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0