summaryrefslogtreecommitdiff
path: root/changelog.md
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-21 20:23:41 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-21 20:23:41 +0800
commitbb1244fa62c0158490d2e54da0a19f28f16fe994 (patch)
treebea39497ee52f7b4de442438bad50c90668a0647 /changelog.md
parentf76cd50992dab57a57c61e8e6f5f788745544da9 (diff)
downloadlua-language-server-bb1244fa62c0158490d2e54da0a19f28f16fe994.zip
resolve #871 infer called function by params num
Diffstat (limited to 'changelog.md')
-rw-r--r--changelog.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md
index 99c845d1..d4b5df88 100644
--- a/changelog.md
+++ b/changelog.md
@@ -6,6 +6,17 @@
local function f() end
local x = f() -- `x` is `nil` instead of `unknown`
```
+* `CHG` infer called function by params num
+ ```lua
+ ---@overload fun(number, number):string
+ ---@overload fun(number):number
+ ---@return boolean
+ local function f() end
+
+ local n1 = f() -- `n1` is `boolean`
+ local n2 = f(0) -- `n2` is `number`
+ local n3 = f(0, 0) -- `n3` is `string`
+ ```
## 3.3.1
`2022-6-17`