From c95511b3efd6febc8642d51d7d0c971f7dc37c0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sun, 18 Dec 2022 06:24:18 +0800 Subject: rename: supports `@field` --- test/rename/init.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test') 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) +]] -- cgit v1.2.3