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.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index a05749b8..a075ef9a 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -3218,3 +3218,15 @@ if true then
end
local <?x?> = n or 0
]]
+
+--TEST 'number' [=[
+--local <?x?> = F()--[[@as number]]
+--]=]
+--
+--TEST 'number' [=[
+--local function f()
+-- return F()--[[@as number]]
+--end
+--
+--local <?x?> = f()
+--]=]