summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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?>()
+ ]]
+ }
+}