summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-01-31 15:04:41 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-01-31 15:04:41 +0800
commit0c5c502806659c11b3edde1ceff6fbb5058aaf0f (patch)
tree3265a276f1f6ae18e750d8308c886b5f12253d87 /test
parentce0432a3cc09909d6a9c9c9886761a128d34c2ad (diff)
downloadlua-language-server-0c5c502806659c11b3edde1ceff6fbb5058aaf0f.zip
fix #1857
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 4fbefd48..5a9e1796 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -4199,3 +4199,12 @@ x.y = nil
print(<?y?>)
]]
+
+TEST 'function' [[
+function X()
+ <?Y?>()
+end
+
+function Y()
+end
+]]