diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-21 18:22:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-21 18:22:41 +0800 |
commit | 8ba44c3e21ac761b88226fec0cc8a5347a4a5804 (patch) | |
tree | dcc3ef284b0eb7f08f91899eb6d3eb48cd55c997 /changelog.md | |
parent | cc6142db768430288fa71e144ba479a7a0e6e420 (diff) | |
download | lua-language-server-8ba44c3e21ac761b88226fec0cc8a5347a4a5804.zip |
#1080 using `---@overload` as class constructor
Diffstat (limited to 'changelog.md')
-rw-r--r-- | changelog.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md index 0bed9c82..0ead8edc 100644 --- a/changelog.md +++ b/changelog.md @@ -10,6 +10,14 @@ -- `a` and `b` is `string` here end) ``` +* `NEW` using `---@overload` as class constructor + ```lua + ---@class Class + ---@overload fun():Class + local mt + + local x = mt() --> x is `Class` here + ``` * `FIX` [#1051](https://github.com/sumneko/lua-language-server/issues/1051) * `FIX` [#1072](https://github.com/sumneko/lua-language-server/issues/1072) * `FIX` [#1077](https://github.com/sumneko/lua-language-server/issues/1077) |