summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-08-11 18:39:51 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-08-11 18:39:51 +0800
commited350080cfb3998fa95abb905cfa363f546e70ce (patch)
tree1c3f90dde731371cc0481b064a997472b1fc5243 /test
parentce2b607822d142afdcd0bd5ca7156b43ea011a56 (diff)
downloadlua-language-server-ed350080cfb3998fa95abb905cfa363f546e70ce.zip
fix stack overflow
Diffstat (limited to 'test')
-rw-r--r--test/hover/init.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index 7d91c385..63220a59 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -2475,3 +2475,16 @@ local <?x?>
[[
local x: A
]]
+
+TEST [[
+---@type A
+local <?f?>
+
+---@enum A
+local t = {
+ x = f,
+}
+]]
+[[
+local f: A
+]]