summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index db1d306e..7cfc7fe9 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -4157,3 +4157,12 @@ if type(X) ~= 'number' then
print(<?X?>)
end
]]
+
+TEST 'boolean' [[
+---@type number
+X = Y
+
+---@cast X boolean
+
+print(<?X?>)
+]]