diff options
Diffstat (limited to 'test/crossfile')
-rw-r--r-- | test/crossfile/references.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/crossfile/references.lua b/test/crossfile/references.lua index 145792b5..cd7689ed 100644 --- a/test/crossfile/references.lua +++ b/test/crossfile/references.lua @@ -179,3 +179,22 @@ TEST { ]] } } + +TEST { + { + path = 'a.lua', + content = [[ + local t = {} + t.<~x~> = 1 + return t + ]] + }, + { + path = 'b.lua', + content = [[ + local t = require 'a' + + print(t.<!x!>) + ]] + } +} |