summaryrefslogtreecommitdiff
path: root/test/type_inference/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-07 15:38:18 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-07 15:38:18 +0800
commitf5464ddc9a8e043977f27e70d9f1dfc2be56b02e (patch)
treeb2c3d0e061753e69105997a81c6e8567998054cf /test/type_inference/init.lua
parent0b87804cba3f24318362993ca2e32e0f95ce990d (diff)
downloadlua-language-server-f5464ddc9a8e043977f27e70d9f1dfc2be56b02e.zip
`boolean` kick `true` and `false`
Diffstat (limited to 'test/type_inference/init.lua')
-rw-r--r--test/type_inference/init.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index da109bd7..a8011616 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -3620,3 +3620,8 @@ end
local <?x?> = bool and '' or 0
]]
+
+TEST 'boolean' [[
+---@type boolean|true|false
+local <?b?>
+]]