diff options
Diffstat (limited to 'test/diagnostics/duplicate-doc-field.lua')
-rw-r--r-- | test/diagnostics/duplicate-doc-field.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/diagnostics/duplicate-doc-field.lua b/test/diagnostics/duplicate-doc-field.lua index 937e2ea4..8f385335 100644 --- a/test/diagnostics/duplicate-doc-field.lua +++ b/test/diagnostics/duplicate-doc-field.lua @@ -20,3 +20,19 @@ TEST [[ --- @field <!on!> fun(eventName: '"died"', cb: fun(i: integer)) local emit = {} ]] + +TEST [[ +---@class A + +---@class B +---@field [integer] A +---@field [A] true +]] + +TEST [[ +---@class A + +---@class B +---@field [<!A!>] A +---@field [<!A!>] true +]] |