summaryrefslogtreecommitdiff
path: root/changelog.md
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-15 16:29:20 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-15 16:29:20 +0800
commite88c7d0e1a0ce37b9377f86b37d6ed963fd935b0 (patch)
tree4fae828ed6652ec5e6d84e67e9d198e8333f6433 /changelog.md
parent96b4e0ba089c717aa5455a7f6fcf6caee863a74e (diff)
downloadlua-language-server-e88c7d0e1a0ce37b9377f86b37d6ed963fd935b0.zip
resolve #1154 resolve #1165
infer type by `t and t.x`
Diffstat (limited to 'changelog.md')
-rw-r--r--changelog.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md
index 3b2e2dc0..01cb797f 100644
--- a/changelog.md
+++ b/changelog.md
@@ -10,7 +10,7 @@
```
* `CHG` infer type by `error`
```lua
- ---@type integer?
+ ---@type integer|nil
local n
if not n then
@@ -19,6 +19,13 @@
print(n) -- `n` is `integer` here
```
+* `CHG` infer type by `t and t.x`
+ ```lua
+ ---@type table|nil
+ local t
+
+ local s = t and t.x or 1 -- `t` in `t.x` is `table`
+ ```
* `FIX` with clients that support LSP 3.17 (VSCode), workspace diagnostics are triggered every time when opening a file.
* `FIX` [#1204](https://github.com/sumneko/lua-language-server/issues/1204)
* `FIX` [#1208](https://github.com/sumneko/lua-language-server/issues/1208)