diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-08-10 11:52:46 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-08-10 11:52:46 +0800 |
commit | 770f21794065e42919a515da2a50a2cf1e1eff60 (patch) | |
tree | e272349d3483053b487afa08bbca749f99ac7bfe /test/crossfile | |
parent | 871035d0574b96175f44cdedd0f8256ae74a0534 (diff) | |
download | lua-language-server-770f21794065e42919a515da2a50a2cf1e1eff60.zip |
fix #244
Diffstat (limited to 'test/crossfile')
-rw-r--r-- | test/crossfile/definition.lua | 21 |
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?>) + ]] + } +} |