summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-09-07 20:59:41 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-09-07 20:59:41 +0800
commit22fde127dbc02ce329fdd2141af19b1729c368de (patch)
treef64ada1523704e370d343efa1358d5f89968031f /test
parentbae4d2e8e68127b017dc09f3019ab9ba886430dc (diff)
downloadlua-language-server-22fde127dbc02ce329fdd2141af19b1729c368de.zip
fix
Diffstat (limited to 'test')
-rw-r--r--test/definition/luadoc.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua
index afa53227..2da10f93 100644
--- a/test/definition/luadoc.lua
+++ b/test/definition/luadoc.lua
@@ -922,4 +922,14 @@ f {
}
]]
+TEST [[
+---@class A
+local a
+a.__index = a
+
+---@class B: A
+local <!b!>
+b.<!<?__index?>!> = b
+]]
+
config.set(nil, 'Lua.type.castNumberToInteger', true)