summaryrefslogtreecommitdiff
path: root/server/test/crossfile/definition.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/test/crossfile/definition.lua')
-rw-r--r--server/test/crossfile/definition.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/server/test/crossfile/definition.lua b/server/test/crossfile/definition.lua
index 396f54c5..458154bc 100644
--- a/server/test/crossfile/definition.lua
+++ b/server/test/crossfile/definition.lua
@@ -217,6 +217,7 @@ TEST {
{
path = 'a.lua',
content = [[
+ x = {}
x.<!global!> = 1
]],
},
@@ -225,5 +226,26 @@ TEST {
content = [[
print(x.<?global?>)
]],
+ },
+}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ x.<!global!> = 1
+ ]],
+ },
+ {
+ path = 'b.lua',
+ content = [[
+ print(x.<?global?>)
+ ]],
+ },
+ {
+ path = 'c.lua',
+ content = [[
+ x = {}
+ ]]
}
}