summaryrefslogtreecommitdiff
path: root/test/type_inference/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-18 02:09:44 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-18 02:09:44 +0800
commitc0b4b0299dc7b7efc667ef7fb0957e079ad8a411 (patch)
treed8c9219275f0ab6c85643a2f93571824023e1b9e /test/type_inference/init.lua
parent53d376ce281906fd856fac42073a072906b2628e (diff)
downloadlua-language-server-c0b4b0299dc7b7efc667ef7fb0957e079ad8a411.zip
update
Diffstat (limited to 'test/type_inference/init.lua')
-rw-r--r--test/type_inference/init.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index d706798b..74f149e0 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -2699,3 +2699,11 @@ end
local <?n?> = f()
]]
+
+TEST 'unknown' [[
+local function f()
+ return t[k]
+end
+
+local <?n?> = f()
+]]