diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-01-17 16:44:06 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-01-17 16:44:06 +0800 |
commit | 6c89b0a55de7e47c9300b4f42421d8f45433da4c (patch) | |
tree | d4fb9856bfba1807cb770884edc57fe79a3df80d /test | |
parent | 69b22d87c64af7e6da633366c45b44735f92ef0a (diff) | |
download | lua-language-server-6c89b0a55de7e47c9300b4f42421d8f45433da4c.zip |
more special treates for meta files
Diffstat (limited to 'test')
-rw-r--r-- | test/crossfile/infer.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/crossfile/infer.lua b/test/crossfile/infer.lua index 2f2c35ad..0b458e5f 100644 --- a/test/crossfile/infer.lua +++ b/test/crossfile/infer.lua @@ -110,3 +110,26 @@ end }, infer = 'V', } + +TEST { + { path = 'a.lua', content = [[ +X = 1 +X = true +]], }, + { path = 'b.lua', content = [[ +print(<?X?>) +]], }, + infer = 'integer', +} + +TEST { + { path = 'a.lua', content = [[ +---@meta +X = 1 +X = true +]], }, + { path = 'b.lua', content = [[ +print(<?X?>) +]], }, + infer = 'boolean|integer', +} |