summaryrefslogtreecommitdiff
path: root/test/type_inference/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-14 18:44:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-14 18:44:27 +0800
commitbb238946ab6bc09b0376b5a4f1875c393f23ff47 (patch)
treeef54c5c9e15e2b86d3be2761f0eeb773e79dd70d /test/type_inference/init.lua
parenteb7363f1c70e62d0f27c675f49b0d28113d4afa4 (diff)
downloadlua-language-server-bb238946ab6bc09b0376b5a4f1875c393f23ff47.zip
update runner
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 2dd6971b..655f963d 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -2420,3 +2420,11 @@ TEST '`1`|`true`' [[
---@type `1` | `true`
local <?x?>
]]
+
+TEST 'function' [[
+local x
+
+function x() end
+
+print(<?x?>)
+]]