diff options
Diffstat (limited to 'test/crossfile')
-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', +} |