Skip to content

Commit 1d5aee3

Browse files
authored
Merge pull request #3091 from dundargoc/fix/bit
fix: fix type annotations for bit module
2 parents 0ca5572 + 2bf9250 commit 1d5aee3

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* `FIX` reimplement section `luals.config` in file doc.json
1010
* `FIX` incorrect file names in file doc.json
1111
* `FIX` remove extra `./` path prefix in the check report when using `--check=.`
12+
* `FIX` fix type annotations for bit module
1213
* `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)
1314

1415
## 3.13.6

meta/template/bit.lua

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,22 @@ function bit.tohex(x, n) end
2222
function bit.bnot(x) end
2323

2424
---@param x integer
25-
---@param x2 integer
2625
---@param ... integer
2726
---@return integer y
2827
---@nodiscard
29-
function bit.bor(x, x2, ...) end
28+
function bit.bor(x, ...) end
3029

3130
---@param x integer
32-
---@param x2 integer
3331
---@param ... integer
3432
---@return integer y
3533
---@nodiscard
36-
function bit.band(x, x2, ...) end
34+
function bit.band(x, ...) end
3735

3836
---@param x integer
39-
---@param x2 integer
4037
---@param ... integer
4138
---@return integer y
4239
---@nodiscard
43-
function bit.bxor(x, x2, ...) end
40+
function bit.bxor(x, ...) end
4441

4542
---@param x integer
4643
---@param n integer

0 commit comments

Comments
 (0)