diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-01-04 14:21:22 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-01-04 14:21:22 +0800 |
commit | 2d37173ea1b669867d89faae61e6e3bb63d72692 (patch) | |
tree | 3b1e78e6cf1aebae12b209678259c7ccea45b816 /test/crossfile | |
parent | 820aa1a56a8a4bdd8fc7098b1e7cff5dd190b2eb (diff) | |
download | lua-language-server-2d37173ea1b669867d89faae61e6e3bb63d72692.zip |
fix #886
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!>) + ]] + } +} |