summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-03-07 21:06:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-03-07 21:06:02 +0800
commit0f2d7890f455a4ad6b9c23f20b041211f162977c (patch)
tree61806d64695fe62bec988976e2e76cfe9adfac11 /test
parent81cffaa48eded4761f6c0b3b2a355d6926b5053e (diff)
downloadlua-language-server-0f2d7890f455a4ad6b9c23f20b041211f162977c.zip
search full refs for global
fix #1914
Diffstat (limited to 'test')
-rw-r--r--test/references/all.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/references/all.lua b/test/references/all.lua
index 9395df86..3c376c21 100644
--- a/test/references/all.lua
+++ b/test/references/all.lua
@@ -126,3 +126,16 @@ end
local v1 = Master:foobar("", Dog)
v1.<!eat!>()
]]
+
+TEST [[
+---@class A
+A = {}
+
+function A:<~TestA~>()
+end
+
+---@param param A
+function TestB(param)
+ param:<!TestA!>()
+end
+]]