diff --git a/changelog.md b/changelog.md index 0572b54ba..11725d30c 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` correct lua version of `math.ult` and `math.type` * `FIX` incorrect links for `pattern` in `string` methods * `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) diff --git a/meta/template/math.lua b/meta/template/math.lua index 37e1d5c74..707aa99c5 100644 --- a/meta/template/math.lua +++ b/meta/template/math.lua @@ -234,6 +234,7 @@ function math.tanh(x) end ---@nodiscard function math.tointeger(x) end +---@version >5.3 ---#DES 'math.type' ---@param x any ---@return @@ -243,6 +244,7 @@ function math.tointeger(x) end ---@nodiscard function math.type(x) end +---@version >5.3 ---#DES 'math.ult' ---@param m integer ---@param n integer