summaryrefslogtreecommitdiff
path: root/changelog.md
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-21 02:04:22 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-21 02:04:22 +0800
commitc2cf059ec21bb1076913bb99132d1f1cabf00d67 (patch)
treec082e15cda982afdb683196bdc9d20c8437e7e4f /changelog.md
parentfa3736b7532a0d64e20e77a667e2e83528e0a01d (diff)
downloadlua-language-server-c2cf059ec21bb1076913bb99132d1f1cabf00d67.zip
supports infer of callback parameter
Diffstat (limited to 'changelog.md')
-rw-r--r--changelog.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md
index fe319441..afb0ba24 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,6 +1,15 @@
# changelog
## 3.1.1
+* `NEW` supports infer of callback parameter
+ ```lua
+ ---@type string[]
+ local t
+
+ table.sort(t, function (a, b)
+ -- `a` and `b` is `string` here
+ end)
+ ```
* `FIX` [#1051](https://github.com/sumneko/lua-language-server/issues/1051)
* `FIX` [#1072](https://github.com/sumneko/lua-language-server/issues/1072)
* `FIX` runtime errors