summaryrefslogtreecommitdiff
path: root/test/diagnostics/type-check.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-20 19:20:53 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-20 19:20:53 +0800
commita04cffb43132645f63e5a319f6ca69e0df87dcdb (patch)
tree6a86e894e08bf45d258bedd0240e61389ba6a94e /test/diagnostics/type-check.lua
parentf7399c6206378b76c87a7386707cf8e24d5a98ac (diff)
downloadlua-language-server-a04cffb43132645f63e5a319f6ca69e0df87dcdb.zip
update
Diffstat (limited to 'test/diagnostics/type-check.lua')
-rw-r--r--test/diagnostics/type-check.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/diagnostics/type-check.lua b/test/diagnostics/type-check.lua
index f882d9c7..30e727d3 100644
--- a/test/diagnostics/type-check.lua
+++ b/test/diagnostics/type-check.lua
@@ -179,6 +179,16 @@ m.ints = {}
TEST [[
---@class A
+---@field x A
+
+---@type A
+local t
+
+t.x = {}
+]]
+
+TEST [[
+---@class A
---@field x integer
---@type A