summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-17 17:14:26 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-17 17:14:26 +0800
commitf7e9256eca47454766ea32a823f631f7fef7a7bf (patch)
treeecd48917845cdbf9b54b5c75d506319f6b38a2a1 /test
parent068b2b210435cd374f6add354d936b4effea9e08 (diff)
downloadlua-language-server-f7e9256eca47454766ea32a823f631f7fef7a7bf.zip
fix #307
Diffstat (limited to 'test')
-rw-r--r--test/crossfile/definition.lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/crossfile/definition.lua b/test/crossfile/definition.lua
index 839a3e89..30d796c8 100644
--- a/test/crossfile/definition.lua
+++ b/test/crossfile/definition.lua
@@ -615,3 +615,28 @@ TEST {
]]
},
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ local lib = {}
+
+ function lib:fn1()
+ return self
+ end
+
+ function lib:<!fn2!>()
+ end
+
+ return lib:fn1()
+ ]]
+ },
+ {
+ path = 'b.lua',
+ content = [[
+ local app = require 'a'
+ print(app.<?fn2?>)
+ ]]
+ },
+}