diff options
Diffstat (limited to 'test/diagnostics/undefined-field.lua')
-rw-r--r-- | test/diagnostics/undefined-field.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/diagnostics/undefined-field.lua b/test/diagnostics/undefined-field.lua index 4bca5195..aff329fb 100644 --- a/test/diagnostics/undefined-field.lua +++ b/test/diagnostics/undefined-field.lua @@ -130,3 +130,19 @@ local n print(n.x) ]] + +TEST [[ +---@type 'x' +local t + +local n = t:upper() +]] + +TEST [[ +---@alias A 'x' + +---@type A +local t + +local n = t:upper() +]] |