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.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/crossfile/definition.lua b/test/crossfile/definition.lua
index be6a5dc6..d492761e 100644
--- a/test/crossfile/definition.lua
+++ b/test/crossfile/definition.lua
@@ -784,3 +784,24 @@ TEST {
]],
},
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+local t = GlobalTable
+
+t.settings = {
+ <!test!> = 1
+}
+ ]]
+ },
+ {
+ path = 'b.lua',
+ content = [[
+local b = GlobalTable.settings
+
+print(b.<?test?>)
+ ]]
+ }
+}