summaryrefslogtreecommitdiff
path: root/test-beta/type_inference
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-29 16:38:07 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-29 16:38:07 +0800
commit155ee2059dd18d805140b87901d01ff79257ed60 (patch)
tree26b80a361a112170970cffcb84c3594330461db1 /test-beta/type_inference
parenta64957132d5c9ecf6c66003ff028d68772d1aa1f (diff)
downloadlua-language-server-155ee2059dd18d805140b87901d01ff79257ed60.zip
支持部分library
Diffstat (limited to 'test-beta/type_inference')
-rw-r--r--test-beta/type_inference/init.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/test-beta/type_inference/init.lua b/test-beta/type_inference/init.lua
index f509ca3f..05b843ec 100644
--- a/test-beta/type_inference/init.lua
+++ b/test-beta/type_inference/init.lua
@@ -194,6 +194,14 @@ TEST 'table' [[
setmetatable(<?b?>)
]]
+TEST 'function' [[
+string.<?sub?>()
+]]
+
+TEST 'function' [[
+(''):<?sub?>()
+]]
+
-- 不根据对方函数内的使用情况来推测
--TEST 'number' [[
--local function x(a)