summaryrefslogtreecommitdiff
path: root/test-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-24 22:03:18 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-24 22:03:18 +0800
commit475eff6d38444e54c4b8b728757072516e354f98 (patch)
treec4aed218ed5f4b86e76bb39878b6a37427bd209f /test-beta
parent412f7946509ba124cb5895cf1ae0bf923dc0442b (diff)
downloadlua-language-server-475eff6d38444e54c4b8b728757072516e354f98.zip
修正一个死循环
Diffstat (limited to 'test-beta')
-rw-r--r--test-beta/type_inference/init.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/test-beta/type_inference/init.lua b/test-beta/type_inference/init.lua
index 169047fa..562baee9 100644
--- a/test-beta/type_inference/init.lua
+++ b/test-beta/type_inference/init.lua
@@ -281,3 +281,14 @@ local _, _, _, <?b?>, _ = x(nil, true, 1, 'yy')
TEST 'any' [[
local <?x?> = next()
]]
+
+TEST 'any' [[
+local a, b
+function a()
+ return b()
+end
+function b()
+ return a()
+end
+local <?x?> = a()
+]]