From b22505b90c6df5fadfcad08bee82ec2f6d91bbaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 15 Jun 2022 17:40:43 +0800 Subject: resolve #1105 infer type by `type(x)` --- changelog.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'changelog.md') diff --git a/changelog.md b/changelog.md index 01cb797f..15042aa8 100644 --- a/changelog.md +++ b/changelog.md @@ -26,6 +26,14 @@ local s = t and t.x or 1 -- `t` in `t.x` is `table` ``` +* `CHG` infer type by `type(x)` + ```lua + local x + + if type(x) == 'string' then + print(x) -- `x` is `string` here + end + ``` * `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) -- cgit v1.2.3