summaryrefslogtreecommitdiff
path: root/test/diagnostics/global-in-nil-env.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/diagnostics/global-in-nil-env.lua')
-rw-r--r--test/diagnostics/global-in-nil-env.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/diagnostics/global-in-nil-env.lua b/test/diagnostics/global-in-nil-env.lua
index 1dc97bd1..a0b8cd3e 100644
--- a/test/diagnostics/global-in-nil-env.lua
+++ b/test/diagnostics/global-in-nil-env.lua
@@ -36,3 +36,9 @@ TEST [[
_ENV = nil
local _ = <!print!> --> local _ = _ENV.print
]]
+
+TEST [[
+local function foo(_ENV)
+ Joe = "human"
+end
+]]