diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-23 17:10:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-23 17:10:41 +0800 |
commit | 70075c6b951b5af948ff7f3550d136a9863ebf48 (patch) | |
tree | facbdce9a282f9bb018248435edb62640301e1d3 /server/test/crossfile/definition.lua | |
parent | c6f18e40500e5c1ffd5c27bc589d413804632cb3 (diff) | |
download | lua-language-server-70075c6b951b5af948ff7f3550d136a9863ebf48.zip |
没必要用readOnly了,因为一定会重新编译全局变量
Diffstat (limited to 'server/test/crossfile/definition.lua')
-rw-r--r-- | server/test/crossfile/definition.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/server/test/crossfile/definition.lua b/server/test/crossfile/definition.lua index 396f54c5..458154bc 100644 --- a/server/test/crossfile/definition.lua +++ b/server/test/crossfile/definition.lua @@ -217,6 +217,7 @@ TEST { { path = 'a.lua', content = [[ + x = {} x.<!global!> = 1 ]], }, @@ -225,5 +226,26 @@ TEST { content = [[ print(x.<?global?>) ]], + }, +} + +TEST { + { + path = 'a.lua', + content = [[ + x.<!global!> = 1 + ]], + }, + { + path = 'b.lua', + content = [[ + print(x.<?global?>) + ]], + }, + { + path = 'c.lua', + content = [[ + x = {} + ]] } } |