summaryrefslogtreecommitdiff
path: root/test/diagnostics/type-check.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-20 17:43:58 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-20 17:43:58 +0800
commitf7399c6206378b76c87a7386707cf8e24d5a98ac (patch)
treeb193931413091f363bee9d35a506c8dc4b359dc8 /test/diagnostics/type-check.lua
parentea94ae75080956dd49608d2a870f45f4c6ff82d8 (diff)
downloadlua-language-server-f7399c6206378b76c87a7386707cf8e24d5a98ac.zip
`cast-field-type`
Diffstat (limited to 'test/diagnostics/type-check.lua')
-rw-r--r--test/diagnostics/type-check.lua9
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
}
]]