summaryrefslogtreecommitdiff
path: root/test/type_inference/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/type_inference/init.lua')
-rw-r--r--test/type_inference/init.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 9beaf7f5..6c8afcea 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -3651,3 +3651,18 @@ end
local <?n?> = test(1)
]]
+
+--TEST 'boolean' [[
+-----@type boolean, number
+--local <?x?>, y
+--]]
+--
+--TEST 'number' [[
+-----@type boolean, number
+--local x, <?y?>
+--]]
+--
+--TEST 'unknown' [[
+-----@type _, number
+--local <?x?>, y
+--]]