diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-02 10:50:58 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-02 10:50:58 +0800 |
commit | 2ca7cad6ead1b12cd899dd7ecac6b8442f499046 (patch) | |
tree | 54fc3b37dabec086697620e0d456c279cfbe4c98 /test-beta/hover/init.lua | |
parent | 9af004f6987221ea92f77118c18996d8d43ee672 (diff) | |
download | lua-language-server-2ca7cad6ead1b12cd899dd7ecac6b8442f499046.zip |
alias 的 hover
Diffstat (limited to 'test-beta/hover/init.lua')
-rw-r--r-- | test-beta/hover/init.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua index 43a81fa3..420e4c1d 100644 --- a/test-beta/hover/init.lua +++ b/test-beta/hover/init.lua @@ -1257,3 +1257,29 @@ local t: Class { z: string, } ]] + +TEST [[ +---@class A + +---@type <?A?> +]] +[[ +class A +]] + +TEST [[ +---@type string | "'enum1'" | "'enum2'" +local <?t?> +]] +[[ +local t: string|'enum1'|'enum2' +]] + +TEST [[ +---@alias A string | "'enum1'" | "'enum2'" + +---@type <?A?> +]] +[[ +展开为 string|'enum1'|'enum2' +]] |