From 8164480e7dad67d62ac9a4346fa2f149addbc573 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 24 May 2021 15:38:24 +0800 Subject: cleanup --- test/type_inference/init.lua | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 5bbf6de9..602f97be 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -295,12 +295,6 @@ end local _, _, _, , _ = x(nil, true, 1, 'yy') ]] --- TODO 暂不支持这些特殊情况,之后用其他语法定义 ---TEST 'integer' [[ ---for in ipairs(t) do ---end ---]] - TEST 'any' [[ local = next() ]] @@ -651,9 +645,8 @@ TEST 'integer' [[ ---@generic T: table, K, V ---@param t T ----@return fun(table: table, index: K):K, V +---@return fun(table: table, index?: K):K, V ---@return T ----@return nil local function pairs(t) end ---@type boolean[] -- cgit v1.2.3