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 ec02eef7..18e9c5f9 100644 --- a/test/crossfile/references.lua +++ b/test/crossfile/references.lua @@ -183,3 +183,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!>) + ]] + } +} |