summaryrefslogtreecommitdiff
path: root/server-beta/test/type_inference
diff options
context:
space:
mode:
Diffstat (limited to 'server-beta/test/type_inference')
-rw-r--r--server-beta/test/type_inference/init.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/server-beta/test/type_inference/init.lua b/server-beta/test/type_inference/init.lua
index 53ee6131..f509ca3f 100644
--- a/server-beta/test/type_inference/init.lua
+++ b/server-beta/test/type_inference/init.lua
@@ -176,6 +176,12 @@ TEST 'integer' [[
local y = <?x?> << 0
]]
+TEST 'integer' [[
+local function f(<?a?>, b)
+ return a << b
+end
+]]
+
-- 不根据调用者的输入参数来推测
--TEST 'number' [[
--local function x(a)