summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2022-03-11 02:12:50 +0800
committersumneko <sumneko@hotmail.com>2022-03-11 02:12:50 +0800
commitc979f901d19440c6f2cdc899ea38e7c9dc204405 (patch)
tree4df0079c3b4b7d98e4e8f38d62e9e7d412c43652 /test
parent9512eec020d1ee186d3fe684cd9c2493c5672fc7 (diff)
downloadlua-language-server-c979f901d19440c6f2cdc899ea38e7c9dc204405.zip
update
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 07a3e2f0..188ca06b 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -481,6 +481,11 @@ TEST 'fun(a: string, b: any, c?: boolean, ...: any):c, d?, ...' [[
local <?x?>
]]
+TEST 'table' [[
+---@type { [string]: string }
+local <?x?>
+]]
+
TEST 'table<string, number>' [[
---@class string
---@class number