From b815469b3df0655b59a8d2eae2770a3b85c98ad8 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, 21 Oct 2024 18:17:52 +0800 Subject: [PATCH] fix sign for `__pairs` --- meta/template/basic.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/template/basic.lua b/meta/template/basic.lua index 70303ca08..ca67b3c62 100644 --- a/meta/template/basic.lua +++ b/meta/template/basic.lua @@ -246,7 +246,7 @@ function setfenv(f, table) end ---@field __newindex table|fun(t,k,v)|nil ---@field __call (fun(t,...):...)|nil ---#if VERSION > 5.1 or VERSION == JIT then ----@field __pairs (fun(t):(fun(t,k,v):any,any))|nil +---@field __pairs (fun(t):((fun(t,k,v):any,any),any,any))|nil ---#end ---#if VERSION == JIT or VERSION == 5.2 then ---@field __ipairs (fun(t):(fun(t,k,v):(integer|nil),any))|nil