summaryrefslogtreecommitdiff
path: root/test/crossfile/definition.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/crossfile/definition.lua')
-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?>)
+ ]]
+ },
+}