diff options
Diffstat (limited to 'test/diagnostics/common.lua')
-rw-r--r-- | test/diagnostics/common.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua index 32c496df..4edb9703 100644 --- a/test/diagnostics/common.lua +++ b/test/diagnostics/common.lua @@ -1008,8 +1008,8 @@ local v ---@type Bar local v2 <!v2!> = v -v2:<!method1!>() -v2:method2() +v2:method1() +v2:<!method2!>() ]] TEST [[ @@ -1613,3 +1613,10 @@ local function foo(x) end foo(f()) ]] + +TEST [[ +---@type string|table +local n + +print(n.x) +]] |