summaryrefslogtreecommitdiff
path: root/test/definition/luadoc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/definition/luadoc.lua')
-rw-r--r--test/definition/luadoc.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua
index 47859b15..b07396fa 100644
--- a/test/definition/luadoc.lua
+++ b/test/definition/luadoc.lua
@@ -899,3 +899,11 @@ local <!x!>
---@cast <?x?> integer
]]
+
+TEST [[
+local function f()
+ local <!x!>
+
+ ---@cast <?x?> integer
+end
+]]