summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-01-03 17:14:20 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-01-03 17:14:20 +0800
commita01ab28d27c8f4a61569d3058981b4d3cd43f7bb (patch)
treec66b71ca21c04042d0549858334b79d15e7f8de8 /test
parent116e22a0b662d44b798c9079ab106f5967955dfc (diff)
downloadlua-language-server-a01ab28d27c8f4a61569d3058981b4d3cd43f7bb.zip
fix renaming
Diffstat (limited to 'test')
-rw-r--r--test/rename/init.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/rename/init.lua b/test/rename/init.lua
index 3dfc19e6..dcb5f9e5 100644
--- a/test/rename/init.lua
+++ b/test/rename/init.lua
@@ -230,3 +230,19 @@ local t
print(t.field2)
]]
+
+TEST ('A', 'C') [[
+---@class A
+
+---@class B: A
+]] [[
+---@class C
+
+---@class B: C
+]]
+
+TEST ('A', 'C') [[
+---@class B: A
+]] [[
+---@class B: C
+]]