diff --git a/changelog.md b/changelog.md index 93e7a5552..6adfb3ecf 100644 --- a/changelog.md +++ b/changelog.md @@ -9,6 +9,7 @@ * `FIX` reimplement section `luals.config` in file doc.json * `FIX` incorrect file names in file doc.json * `FIX` remove extra `./` path prefix in the check report when using `--check=.` +* `FIX` fix type annotations for bit module * `FIX` Another regression related to type narrow and generic param introduced since `v3.10.1` [#3087](https://github.com/LuaLS/lua-language-server/issues/3087) ## 3.13.6 diff --git a/meta/template/bit.lua b/meta/template/bit.lua index e30d8c912..b13e25731 100644 --- a/meta/template/bit.lua +++ b/meta/template/bit.lua @@ -22,25 +22,22 @@ function bit.tohex(x, n) end function bit.bnot(x) end ---@param x integer ----@param x2 integer ---@param ... integer ---@return integer y ---@nodiscard -function bit.bor(x, x2, ...) end +function bit.bor(x, ...) end ---@param x integer ----@param x2 integer ---@param ... integer ---@return integer y ---@nodiscard -function bit.band(x, x2, ...) end +function bit.band(x, ...) end ---@param x integer ----@param x2 integer ---@param ... integer ---@return integer y ---@nodiscard -function bit.bxor(x, x2, ...) end +function bit.bxor(x, ...) end ---@param x integer ---@param n integer