summaryrefslogtreecommitdiff
path: root/changelog.md
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-05 16:04:12 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-05 16:04:12 +0800
commite711f30dbcf840e8adec49a78d734d1a0306934b (patch)
treebb93c69ebfc9363554b939a1f93696fa4ad2f608 /changelog.md
parenta00de14e61b02e3b015fe33f8c01b748113bf4ce (diff)
downloadlua-language-server-e711f30dbcf840e8adec49a78d734d1a0306934b.zip
resolve #1280
Diffstat (limited to 'changelog.md')
-rw-r--r--changelog.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md
index 4e457622..4c3a4040 100644
--- a/changelog.md
+++ b/changelog.md
@@ -3,6 +3,14 @@
## 3.4.1
* `NEW` settings:
* `type.weakNilCheck`
+* `CHG` allow type contravariance for `setmetatable` when initializing a class
+ ```lua
+ ---@class A
+ local a = {}
+
+ ---@class B: A
+ local b = setmetatable({}, { __index = a }) -- OK!
+ ```
* `FIX` [#1256](https://github.com/sumneko/lua-language-server/issues/1256)
* `FIX` [#1257](https://github.com/sumneko/lua-language-server/issues/1257)
* `FIX` [#1267](https://github.com/sumneko/lua-language-server/issues/1267)