diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-15 17:56:23 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-15 17:56:23 +0800 |
commit | d80a3db90e27f1c4598bb2bf316891857fe71bb9 (patch) | |
tree | 5ede35d02896ab41d6353095d032cd8c66006129 /test | |
parent | be19b8b2e6246bd53e08df3fabaa8442b3422dc6 (diff) | |
download | lua-language-server-d80a3db90e27f1c4598bb2bf316891857fe71bb9.zip |
#589 first supports integer field
Diffstat (limited to 'test')
-rw-r--r-- | test/definition/luadoc.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua index 34d24cf2..5380f4ca 100644 --- a/test/definition/luadoc.lua +++ b/test/definition/luadoc.lua @@ -652,3 +652,18 @@ local t print(t.<?x?>) ]] + +TEST [[ +---@class A +---@field <![1]!>? boolean +local t + +print(t[<?1?>]) +]] + +TEST [[ +---@type { <![1]?: boolean!> } +local t + +print(t[<?1?>]) +]] |