diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-25 01:23:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-25 01:23:50 +0800 |
commit | 125d943a7faec97b7169d0088a12ba6a44a14c16 (patch) | |
tree | 40b5a7d8d55571334c5ddecd302fe89c34969c84 /changelog.md | |
parent | 163da759468164bc020fb4801bf06f1a190af7ad (diff) | |
download | lua-language-server-125d943a7faec97b7169d0088a12ba6a44a14c16.zip |
add `---@cast`
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 e6ecca52..8e329946 100644 --- a/changelog.md +++ b/changelog.md @@ -23,6 +23,12 @@ local x = true local y = x--[[@as integer]] -- y is `integer` here ``` +* `NEW` add `---@cast` + * `---@cast localname type` + * `---@cast localname +type` + * `---@cast localname -type` + * `---@cast localname +?` + * `---@cast localname -?` * `NEW` generic: resolve `T[]` by `table<integer, type>` or `---@field [integer] type` * `NEW` resolve `class[1]` by `---@field [integer] type` * `NEW` diagnostic: `missing-parameter` |