summaryrefslogtreecommitdiff
path: root/changelog.md
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-12 16:40:49 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-12 16:40:49 +0800
commit7f35d4640b4a7338fdd34fb1c3509c3c671fa0ec (patch)
tree4609d6e0199991091ae4c2d87881b3796dab740e /changelog.md
parentf0d3ef728726217a791764bdfc2d2375e1217afb (diff)
downloadlua-language-server-7f35d4640b4a7338fdd34fb1c3509c3c671fa0ec.zip
contravariance is allowed at the class declaration
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 758eb61a..c18755f3 100644
--- a/changelog.md
+++ b/changelog.md
@@ -26,6 +26,14 @@
* `_ENV = {}`: allow all globals
* `_ENV = {} ---@type mathlib`: only allow globals in `mathlib`
* `CHG` hover: dose not show unknown `---@XXX` as description
+* `CHG` contravariance is allowed at the class declaration
+ ```lua
+ ---@class BaseClass
+ local BaseClass
+
+ ---@class MyClass: BaseClass
+ local MyClass = BaseClass -- OK!
+ ```
* `FIX` [#880](https://github.com/sumneko/lua-language-server/issues/880)
* `FIX` [#1284](https://github.com/sumneko/lua-language-server/issues/1284)
* `FIX` [#1292](https://github.com/sumneko/lua-language-server/issues/1292)