summaryrefslogtreecommitdiff
path: root/test/diagnostics/doc-field-no-class.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/diagnostics/doc-field-no-class.lua')
-rw-r--r--test/diagnostics/doc-field-no-class.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/diagnostics/doc-field-no-class.lua b/test/diagnostics/doc-field-no-class.lua
new file mode 100644
index 00000000..87db518c
--- /dev/null
+++ b/test/diagnostics/doc-field-no-class.lua
@@ -0,0 +1,16 @@
+TEST [[
+---@field <!x Class!>
+---@class Class
+]]
+
+TEST [[
+---@class Class
+
+---@field <!x Class!>
+]]
+
+TEST [[
+---@class Class
+---
+---@field x Class
+]]