summaryrefslogtreecommitdiff
path: root/test-beta/crossfile/references.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test-beta/crossfile/references.lua')
-rw-r--r--test-beta/crossfile/references.lua63
1 files changed, 63 insertions, 0 deletions
diff --git a/test-beta/crossfile/references.lua b/test-beta/crossfile/references.lua
index 3c952def..a0e34cfd 100644
--- a/test-beta/crossfile/references.lua
+++ b/test-beta/crossfile/references.lua
@@ -331,3 +331,66 @@ TEST {
]]
}
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ local function <?f?>()
+ end
+
+ return {
+ <!f!> = <!f!>,
+ }
+ ]]
+ },
+ {
+ path = 'b1.lua',
+ content = [[
+ local t = require 'a'
+ t.<!f!>()
+ ]]
+ },
+ {
+ path = 'b2.lua',
+ content = [[
+ local t = require 'a'
+ t.<!f!>()
+ ]]
+ },
+ {
+ path = 'b3.lua',
+ content = [[
+ local t = require 'a'
+ t.<!f!>()
+ ]]
+ },
+ {
+ path = 'b4.lua',
+ content = [[
+ local t = require 'a'
+ t.<!f!>()
+ ]]
+ },
+ {
+ path = 'b5.lua',
+ content = [[
+ local t = require 'a'
+ t.<!f!>()
+ ]]
+ },
+ {
+ path = 'b6.lua',
+ content = [[
+ local t = require 'a'
+ t.<!f!>()
+ ]]
+ },
+ {
+ path = 'b7.lua',
+ content = [[
+ local t = require 'a'
+ t.<!f!>()
+ ]]
+ },
+}