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.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index b8ca4df9..85cbf683 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -4074,3 +4074,9 @@ else
print(<?t?>)
end
]]
+
+TEST 'function' [[
+local function x()
+ print(<?x?>)
+end
+]]