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.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index d3ff258c..ac300fcb 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -233,6 +233,14 @@ end
<?y?> = x()
]]
+TEST 'any' [[
+local function x()
+ return nil
+ return f()
+end
+<?y?> = x()
+]]
+
TEST 'integer' [[
local function x()
return 1