summaryrefslogtreecommitdiff
path: root/test/crossfile/references.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-10 20:19:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-10 20:19:27 +0800
commitebf15e83ec1d225c392b5c818824339f6cb68a76 (patch)
treed2f329d185fce7d64fb7fe90c14415fd6f5c695b /test/crossfile/references.lua
parent24543ab578b67bea57cf9f8c4817665a03515858 (diff)
downloadlua-language-server-ebf15e83ec1d225c392b5c818824339f6cb68a76.zip
improve
Diffstat (limited to 'test/crossfile/references.lua')
-rw-r--r--test/crossfile/references.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/crossfile/references.lua b/test/crossfile/references.lua
index 0a6f0b57..6c28b34b 100644
--- a/test/crossfile/references.lua
+++ b/test/crossfile/references.lua
@@ -195,3 +195,25 @@ TEST {
]],
},
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ ---@type A
+ local t
+
+ t.<!f!>()
+ ]]
+ },
+ {
+ path = 'b.lua',
+ content = [[
+ ---@class A
+ local mt
+
+ function mt.<?f?>()
+ end
+ ]]
+ }
+}