summaryrefslogtreecommitdiff
path: root/test/diagnostics/missing-fields.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/diagnostics/missing-fields.lua')
-rw-r--r--test/diagnostics/missing-fields.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/diagnostics/missing-fields.lua b/test/diagnostics/missing-fields.lua
index d8731775..f5fdd35c 100644
--- a/test/diagnostics/missing-fields.lua
+++ b/test/diagnostics/missing-fields.lua
@@ -197,3 +197,11 @@ local b = {
c = 3,
}
]]
+
+TEST [[
+---@class A
+---@field x integer
+
+---@type A
+return <!{}!>
+]]