diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-12-18 06:24:18 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-12-18 06:24:18 +0800 |
commit | c95511b3efd6febc8642d51d7d0c971f7dc37c0e (patch) | |
tree | 3b4ed6eaa6167c68e5078a1a0468daa101048219 /test | |
parent | bf65753f457634d27f2cc4cc60ac68838ca0f9b5 (diff) | |
download | lua-language-server-c95511b3efd6febc8642d51d7d0c971f7dc37c0e.zip |
rename: supports `@field`
Diffstat (limited to 'test')
-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) +]] |