diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-20 17:43:58 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-20 17:43:58 +0800 |
commit | f7399c6206378b76c87a7386707cf8e24d5a98ac (patch) | |
tree | b193931413091f363bee9d35a506c8dc4b359dc8 /test/diagnostics/type-check.lua | |
parent | ea94ae75080956dd49608d2a870f45f4c6ff82d8 (diff) | |
download | lua-language-server-f7399c6206378b76c87a7386707cf8e24d5a98ac.zip |
`cast-field-type`
Diffstat (limited to 'test/diagnostics/type-check.lua')
-rw-r--r-- | test/diagnostics/type-check.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/diagnostics/type-check.lua b/test/diagnostics/type-check.lua index c59d73ed..f882d9c7 100644 --- a/test/diagnostics/type-check.lua +++ b/test/diagnostics/type-check.lua @@ -177,10 +177,11 @@ local m = {} m.ints = {} ]] -do return end TEST [[ ---@class A ---@field x integer + +---@type A local t <!t.x!> = true @@ -189,6 +190,8 @@ local t TEST [[ ---@class A ---@field x integer + +---@type A local t ---@type boolean @@ -200,9 +203,9 @@ local y TEST [[ ---@class A ---@field x integer -local t -t = { +---@type A +local t = { <!x!> = true } ]] |