summaryrefslogtreecommitdiff
path: root/test-beta/type_inference
diff options
context:
space:
mode:
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)