summaryrefslogtreecommitdiff
path: root/test-beta/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-08-14 18:46:14 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-08-14 18:46:14 +0800
commit95649b638444a7f18d374cb06ca79b9bafebf538 (patch)
treeb6f7b4aac6fcc4be2d6b6b2f73824a9dd4e470ee /test-beta/crossfile
parent7e7b526a4ec90bd9ba0c1e3a7663abb83ab157fc (diff)
downloadlua-language-server-95649b638444a7f18d374cb06ca79b9bafebf538.zip
修正bug
Diffstat (limited to 'test-beta/crossfile')
-rw-r--r--test-beta/crossfile/definition.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/test-beta/crossfile/definition.lua b/test-beta/crossfile/definition.lua
index a642f68d..fbeda828 100644
--- a/test-beta/crossfile/definition.lua
+++ b/test-beta/crossfile/definition.lua
@@ -474,6 +474,32 @@ TEST {
{
path = 'a.lua',
content = [[
+ local m = {}
+ function m.<!func!>()
+ end
+ return m
+ ]]
+ },
+ {
+ path = 'c.lua',
+ content = [[
+ local x = require 'a'
+ print(x.func)
+ ]]
+ },
+ {
+ path = 'b.lua',
+ content = [[
+ local x = require 'a'
+ print(x.<?func?>)
+ ]]
+ }
+}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
return <!function ()
end!>
]]