diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-06 15:15:07 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-06 15:15:07 +0800 |
commit | eeb24f394050578dd575e6c9035230c0d51b2672 (patch) | |
tree | a7a3ce473fb7fdf0a05ca89e34b8dbe4fd6cb40c /test/hover | |
parent | 48c53a36c6bad6662aabc8af98fb58d54ad9a498 (diff) | |
download | lua-language-server-eeb24f394050578dd575e6c9035230c0d51b2672.zip |
fix #1288
Diffstat (limited to 'test/hover')
-rw-r--r-- | test/hover/init.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index acb779bf..476644fc 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -2074,3 +2074,20 @@ local <?f?> [[ local f: fun():(x: number, y: boolean) ]] + +TEST [[ +---@class MyClass +local MyClass = { + a = 1 +} + +function MyClass:Test() + <?self?> +end +]] +[[ +(self) self: MyClass { + Test: function, + a: integer = 1, +} +]] |