diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-04 18:04:08 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-04 18:04:08 +0800 |
commit | 88b58826a4e84d5bc4c0cf99e544c5b4073cb198 (patch) | |
tree | 471174b237356472006bf461268be754d09fcb56 /test | |
parent | 536c6148c4071ba4533da94948c81037322ae37d (diff) | |
download | lua-language-server-88b58826a4e84d5bc4c0cf99e544c5b4073cb198.zip |
fix #279 parser native supports negative number
Diffstat (limited to 'test')
-rw-r--r-- | test/hover/init.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index b24e2950..ff94524d 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -890,6 +890,21 @@ local t: { } ]] +TEST [[ +local <?t?> = { + [-1] = -1, + [0] = 0, + [1] = 1, +} +]] +[[ +local t: { + [-1]: integer = -1, + [0]: integer = 0, + [1]: integer = 1, +} +]] + TEST[[ ---@class Class local <?x?> = class() |