From 58df10c5d5957b8437e76e271f7c7c1a41aca105 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, 20 Jun 2022 21:08:35 +0800 Subject: stash --- test/diagnostics/type-check.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/diagnostics/type-check.lua b/test/diagnostics/type-check.lua index 295fb32d..56d034b6 100644 --- a/test/diagnostics/type-check.lua +++ b/test/diagnostics/type-check.lua @@ -254,5 +254,11 @@ local t = { } ]] +TEST [[ +---@type boolean[] +local t = {} + +t[5] = nil +]] config.remove(nil, 'Lua.diagnostics.disable', 'unused-local') config.remove(nil, 'Lua.diagnostics.disable', 'undefined-global') -- cgit v1.2.3