summaryrefslogtreecommitdiff
path: root/server/test/references/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/test/references/init.lua')
-rw-r--r--server/test/references/init.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/server/test/references/init.lua b/server/test/references/init.lua
index bcaafbbc..6a8b42db 100644
--- a/server/test/references/init.lua
+++ b/server/test/references/init.lua
@@ -85,3 +85,12 @@ function <!mt!>:a()
<?self?>:remove()
end
]]
+
+TEST [[
+local function f()
+ return <?function ()
+ end?>
+end
+
+local <!f2!> = f()
+]]