From 5083f1cd9438da23f1022327ea24e7044bcc2f49 Mon Sep 17 00:00:00 2001 From: Paul Emmerich Date: Sun, 1 Sep 2024 12:32:33 +0200 Subject: Fix setfenv definition The first parameter got parsed as `async fun(...):(...|integer)` which triggered an incorrect warning when using it as `setfenv(2, env)` --- meta/template/basic.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/template') diff --git a/meta/template/basic.lua b/meta/template/basic.lua index 75cd1dee..70303ca0 100644 --- a/meta/template/basic.lua +++ b/meta/template/basic.lua @@ -210,7 +210,7 @@ function select(index, ...) end ---@version 5.1 ---#DES 'setfenv' ----@param f async fun(...):...|integer +---@param f (async fun(...):...)|integer ---@param table table ---@return function function setfenv(f, table) end -- cgit v1.2.3