diff options
Diffstat (limited to 'test/diagnostics/undefined-doc-class.lua')
-rw-r--r-- | test/diagnostics/undefined-doc-class.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/diagnostics/undefined-doc-class.lua b/test/diagnostics/undefined-doc-class.lua new file mode 100644 index 00000000..6b7acfd1 --- /dev/null +++ b/test/diagnostics/undefined-doc-class.lua @@ -0,0 +1,23 @@ +TEST [[ +---@class A : <!B!> +]] + +TEST [[ +---@type <!A!> +]] + +TEST [[ +---@class A +---@type A|<!B!>|<!C!> +]] + +TEST [[ +---@class AAA +---@alias B AAA + +---@type B +]] + +TEST [[ +---@alias B <!AAA!> +]] |