summaryrefslogtreecommitdiff
path: root/test/type_inference
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-13 11:37:31 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-13 11:37:31 +0800
commit580da8919f56ca2ca4e7ba52274e1e8b8b9d19c4 (patch)
tree04061f8860fb7d3da75b0c213b5e874c84574934 /test/type_inference
parentc68880e0a9b434aca8bd179a83ec464b0685e134 (diff)
downloadlua-language-server-580da8919f56ca2ca4e7ba52274e1e8b8b9d19c4.zip
stash
Diffstat (limited to 'test/type_inference')
-rw-r--r--test/type_inference/init.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 9a6cce6f..95933b8d 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -244,8 +244,11 @@ end
]]
TEST 'string' [[
+---@return string
+local function f2() end
+
local function f()
- return string.sub()
+ return f2()
end
local <?x?> = f()