diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-23 17:42:08 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-23 17:42:08 +0800 |
commit | 012a762ba8b282284d9cb3d0c7848f529b3fe3e1 (patch) | |
tree | dc5af4c03c1a9301ee2f433f8f18a80ffe6a3b4b /test/definition/bug.lua | |
parent | 47fe75ba157846e0c961ff9b08b113f7a8936d49 (diff) | |
download | lua-language-server-012a762ba8b282284d9cb3d0c7848f529b3fe3e1.zip |
fix #318
Diffstat (limited to 'test/definition/bug.lua')
-rw-r--r-- | test/definition/bug.lua | 17 |
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?> +]] |