summaryrefslogtreecommitdiff
path: root/changelog.md
diff options
context:
space:
mode:
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 f2242e72..3b2e2dc0 100644
--- a/changelog.md
+++ b/changelog.md
@@ -8,6 +8,17 @@
if x == -- suggest `CONST.X` and `CONST.Y` here
```
+* `CHG` infer type by `error`
+ ```lua
+ ---@type integer?
+ local n
+
+ if not n then
+ error('n is nil')
+ end
+
+ print(n) -- `n` is `integer` here
+ ```
* `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)