From a1f966af7db434c5dc7b2423ae63f4fe21957b46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 16 Jun 2022 21:19:32 +0800 Subject: can set `table` or `class` to `nil` --- script/core/hover/label.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'script/core/hover') diff --git a/script/core/hover/label.lua b/script/core/hover/label.lua index e725f6b0..a91ca074 100644 --- a/script/core/hover/label.lua +++ b/script/core/hover/label.lua @@ -56,9 +56,9 @@ local function asValue(source, title) or type == 'any' or type == 'unknown' or type == 'nil') then - type = nil + else + pack[#pack+1] = type end - pack[#pack+1] = type if literal then pack[#pack+1] = '=' pack[#pack+1] = literal -- cgit v1.2.3