From e56f864d92fdd50d12abb04313e33593723613da 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, 20 Jul 2021 17:53:25 +0800 Subject: `LuaDoc`: supports `['string']` as field: --- test/definition/luadoc.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test') diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua index 5380f4ca..22a51845 100644 --- a/test/definition/luadoc.lua +++ b/test/definition/luadoc.lua @@ -667,3 +667,18 @@ local t print(t[]) ]] + +TEST [[ +---@class A +---@field ? boolean +local t + +print(t.) +]] + +TEST [[ +---@type { } +local t + +print(t.) +]] -- cgit v1.2.3