summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-01-17 16:44:06 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-01-17 16:44:06 +0800
commit6c89b0a55de7e47c9300b4f42421d8f45433da4c (patch)
treed4fb9856bfba1807cb770884edc57fe79a3df80d /test/crossfile
parent69b22d87c64af7e6da633366c45b44735f92ef0a (diff)
downloadlua-language-server-6c89b0a55de7e47c9300b4f42421d8f45433da4c.zip
more special treates for meta files
Diffstat (limited to 'test/crossfile')
-rw-r--r--test/crossfile/infer.lua23
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',
+}