summaryrefslogtreecommitdiff
path: root/test/hover
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-03-01 21:10:46 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-03-01 21:10:46 +0800
commit80f7dd1d8ea9c575aa9b26916c3eeccb58251cfc (patch)
treebea676f33761c7fcbba05a52b009acf86be0ed96 /test/hover
parent007c58d43c6171cba5da72f8b6595fa1986d598e (diff)
downloadlua-language-server-80f7dd1d8ea9c575aa9b26916c3eeccb58251cfc.zip
dont infer `x()` as function
Diffstat (limited to 'test/hover')
-rw-r--r--test/hover/init.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index c0c288e6..fa7d3f22 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -1562,3 +1562,12 @@ local self: E {
f: function,
}
]]
+
+TEST [[
+local f
+
+<?f?>()
+]]
+[[
+local f: any
+]]