diff options
Diffstat (limited to 'changelog.md')
-rw-r--r-- | changelog.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md index 77d12c51..3e2bdc22 100644 --- a/changelog.md +++ b/changelog.md @@ -33,6 +33,12 @@ if type(x) == 'string' then print(x) -- `x` is `string` here end + + local tp = type(x) + + if tp == 'boolean' then + print(x) -- `x` is `boolean` here + end ``` * `CHG` infer type by `>`/`<`/`>=`/`<=` * `FIX` with clients that support LSP 3.17 (VSCode), workspace diagnostics are triggered every time when opening a file. |