summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 4fbefd48..5a9e1796 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -4199,3 +4199,12 @@ x.y = nil
print(<?y?>)
]]
+
+TEST 'function' [[
+function X()
+ <?Y?>()
+end
+
+function Y()
+end
+]]