From 3bdd74aa30a6175f1bbf973559241f99eb563dfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 17 Oct 2022 14:54:14 +0800 Subject: fix #1637 --- 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 a938f14c..bdba855b 100644 --- a/test/diagnostics/type-check.lua +++ b/test/diagnostics/type-check.lua @@ -834,6 +834,13 @@ local function f(x) end ]] +TEST [[ +---@alias test boolean + +---@type test +local = 4 +]] + config.remove(nil, 'Lua.diagnostics.disable', 'unused-local') config.remove(nil, 'Lua.diagnostics.disable', 'unused-function') config.remove(nil, 'Lua.diagnostics.disable', 'undefined-global') -- cgit v1.2.3