diff options
Diffstat (limited to 'test-beta/hover/init.lua')
-rw-r--r-- | test-beta/hover/init.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua index 420e4c1d..2d550fea 100644 --- a/test-beta/hover/init.lua +++ b/test-beta/hover/init.lua @@ -1283,3 +1283,13 @@ TEST [[ [[ 展开为 string|'enum1'|'enum2' ]] + +TEST [[ +---@alias A string | "'enum1'" | "'enum2'" + +---@type A +local <?t?> +]] +[[ +local t: string|'enum1'|'enum2' +]] |