summaryrefslogtreecommitdiff
path: root/test/definition/bug.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-23 17:42:08 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-23 17:42:08 +0800
commit012a762ba8b282284d9cb3d0c7848f529b3fe3e1 (patch)
treedc5af4c03c1a9301ee2f433f8f18a80ffe6a3b4b /test/definition/bug.lua
parent47fe75ba157846e0c961ff9b08b113f7a8936d49 (diff)
downloadlua-language-server-012a762ba8b282284d9cb3d0c7848f529b3fe3e1.zip
fix #318
Diffstat (limited to 'test/definition/bug.lua')
-rw-r--r--test/definition/bug.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/definition/bug.lua b/test/definition/bug.lua
index 9eafe302..8c446123 100644
--- a/test/definition/bug.lua
+++ b/test/definition/bug.lua
@@ -152,3 +152,20 @@ TEST [[
string.xx = ''
string.xx:<?format?>()
]]
+
+TEST [[
+---@class Foo
+Foo = {}
+function Foo:Constructor()
+ self.<!bar1!> = 1
+end
+
+---@class Foo2: Foo
+Foo2 = {}
+function Foo2:Constructor()
+end
+
+---@type Foo2
+local v
+v.<?bar1?>
+]]