summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-02-04 10:36:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-02-04 10:36:56 +0800
commit92562f4e2fbec5089da5b905036484e90e2698f9 (patch)
tree2b0fa4eeeb75a099c7064240f4ec037e43206ef8 /test
parent3ad7d4abca0f262d8df09b1d4d2ecfb850913256 (diff)
downloadlua-language-server-92562f4e2fbec5089da5b905036484e90e2698f9.zip
fix #356
Diffstat (limited to 'test')
-rw-r--r--test/crossfile/definition.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/crossfile/definition.lua b/test/crossfile/definition.lua
index 30d796c8..0eb6888f 100644
--- a/test/crossfile/definition.lua
+++ b/test/crossfile/definition.lua
@@ -640,3 +640,25 @@ TEST {
]]
},
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ local m = {}
+
+ function m.<!f!>()
+ end
+
+ return setmetatable(m, {})
+ ]],
+ },
+ {
+ path = 'b.lua',
+ content = [[
+ local m = require 'a'
+
+ m.<?f?>()
+ ]]
+ }
+}