summaryrefslogtreecommitdiff
path: root/test/type_inference
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-12-13 19:35:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-12-13 19:35:43 +0800
commited97a9e8905fdbb3b23694896c813cfdb73cd91f (patch)
treec141f67e98571dffed743172548748a383437eed /test/type_inference
parent73f8157c96d2551d7cfc3e2b1868a792095eec03 (diff)
downloadlua-language-server-ed97a9e8905fdbb3b23694896c813cfdb73cd91f.zip
redesign
Diffstat (limited to 'test/type_inference')
-rw-r--r--test/type_inference/init.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index ab7404e2..cabff606 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -1767,6 +1767,17 @@ end
print(<?x?>)
]]
+TEST 'boolean' [[
+local x
+x = true
+function XX()
+ do
+ x = 1
+ end
+end
+print(<?x?>)
+]]
+
TEST 'integer?' [[
---@type integer?
local <?x?>