diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-11-06 22:58:11 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-11-06 22:58:11 +0800 |
commit | 9be846d86c494e08d376aa465e8269796176765a (patch) | |
tree | 04027cdb5ae6a118739a92911dbbd6797a39939f /test/hover/init.lua | |
parent | dcca81c4fa7bd9b745123be8be0c8b07fcd6e29a (diff) | |
download | lua-language-server-9be846d86c494e08d376aa465e8269796176765a.zip |
type check: check the fields in table
resolve #1434
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r-- | test/hover/init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index 780c1da8..974f87db 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -420,7 +420,7 @@ local t: { [1]: integer = 2, [true]: integer = 3, [5.5]: integer = 4, - b: integer = 7, + ["b"]: integer = 7, ["012"]: integer = 8, } ]] @@ -1714,11 +1714,11 @@ local <?t?> = { local t: { x: string = "e", y: string = "f", - z: string = "g", + ["z"]: string = "g", + [10]: string = "d", [1]: string = "a", [2]: string = "b", [3]: string = "c"|"h", - [10]: string = "d", } ]] |