diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-09 19:33:28 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-09 19:33:28 +0800 |
commit | bc92c4dcefc0c87420c7d4b239c1eb4b9d14588c (patch) | |
tree | 80b442f8a0c82faf4d4af9a8484bb6cfca8c94ec /test | |
parent | f8f9b68d3e89e602bcfe80fa18b2f5cb0846e846 (diff) | |
download | lua-language-server-bc92c4dcefc0c87420c7d4b239c1eb4b9d14588c.zip |
add `doc.type.code`
Diffstat (limited to 'test')
-rw-r--r-- | test/hover/init.lua | 8 | ||||
-rw-r--r-- | test/type_inference/init.lua | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index dc725f6c..46accbf7 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -1921,3 +1921,11 @@ end [[ (upvalue) x: unknown ]] + +TEST [[ +---@type `123 ????` | ` x | y ` +local <?x?> +]] +[[ +local x: ` x | y `|`123 ????` +]] diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 56f57100..566e847a 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -2370,3 +2370,8 @@ TEST 'boolean|table' [[ ---@type tp local <?x?> ]] + +TEST '`1`|`true`' [[ +---@type `1` | `true` +local <?x?> +]] |