summaryrefslogtreecommitdiff
path: root/test/hover/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-07 16:04:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-07 16:04:02 +0800
commit3150962ceadf0046deb164ab6e042f74029de4eb (patch)
tree2f585975bd6b744d197b78e6c5d12cccc4a162c6 /test/hover/init.lua
parentf5464ddc9a8e043977f27e70d9f1dfc2be56b02e (diff)
downloadlua-language-server-3150962ceadf0046deb164ab6e042f74029de4eb.zip
fix #1294
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r--test/hover/init.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index 476644fc..82cf1ddf 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -2091,3 +2091,24 @@ end
a: integer = 1,
}
]]
+
+TEST [[
+local y
+if X then
+ y = true
+else
+ y = false
+end
+
+local bool = y
+
+bool = bool and y
+
+if bool then
+end
+
+print(<?bool?>)
+]]
+[[
+local bool: boolean = true|false
+]]