diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-06 04:16:40 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-06 04:16:40 +0800 |
commit | c4c0009ef28de6cd4bfe01c497cbb718f3c2dff8 (patch) | |
tree | 7524eb0f7370f256cb74934fe731464f9884b874 /test/type_inference | |
parent | bf3f97e05082f2a529621a70c3fde516513076b1 (diff) | |
download | lua-language-server-c4c0009ef28de6cd4bfe01c497cbb718f3c2dff8.zip |
update
Diffstat (limited to 'test/type_inference')
-rw-r--r-- | test/type_inference/init.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 02e46b01..a6311e6e 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -1367,3 +1367,17 @@ TEST 'function' [[ ---@overload fun() function <?f?>() end ]] + +TEST 'integer' [[ +---@type table<string, integer> +local t + +t.<?a?> +]] + +TEST '"a"|"b"|"c"' [[ +---@type table<string, "a"|"b"|"c"> +local t + +t.<?a?> +]] |