diff --git a/spec/lang/statement/return_spec.lua b/spec/lang/statement/return_spec.lua index 1b9f1794..73a28c76 100644 --- a/spec/lang/statement/return_spec.lua +++ b/spec/lang/statement/return_spec.lua @@ -37,6 +37,14 @@ describe("return", function() return bar() end ]], {})) + + it("with zero (regression test for #741)", util.check([[ + local function bar() end + + local function foo() + return bar() + end + ]])) end) describe("type checking", function()