diff options
Diffstat (limited to 'test/rename/init.lua')
-rw-r--r-- | test/rename/init.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/rename/init.lua b/test/rename/init.lua index d4252d1e..3dfc19e6 100644 --- a/test/rename/init.lua +++ b/test/rename/init.lua @@ -212,3 +212,21 @@ function f(arg2) print(arg2) end ]] + +TEST ('field1', 'field2') [[ +---@class A +---@field field1 number + +---@type A +local t + +print(t.field1) +]] [[ +---@class A +---@field field2 number + +---@type A +local t + +print(t.field2) +]] |