File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 69
69
* ` FIX ` [ #1317 ] ( https://github.com/sumneko/lua-language-server/issues/1317 )
70
70
* ` FIX ` [ #1320 ] ( https://github.com/sumneko/lua-language-server/issues/1320 )
71
71
* ` FIX ` [ #1330 ] ( https://github.com/sumneko/lua-language-server/issues/1330 )
72
+ * ` FIX ` [ #1345 ] ( https://github.com/sumneko/lua-language-server/issues/1345 )
72
73
* ` FIX ` [ #1346 ] ( https://github.com/sumneko/lua-language-server/issues/1346 )
73
74
* ` FIX ` [ #1348 ] ( https://github.com/sumneko/lua-language-server/issues/1348 )
74
75
Original file line number Diff line number Diff line change @@ -977,6 +977,7 @@ local function compileLocal(source)
977
977
vm .setNode (source , vm .compileNode (source .parent .parent .parent .node ))
978
978
end
979
979
end
980
+ vm .getNode (source ):remove ' function'
980
981
end
981
982
local hasMarkValue
982
983
if not hasMarkDoc and source .value then
Original file line number Diff line number Diff line change @@ -3726,3 +3726,14 @@ local m = {}
3726
3726
3727
3727
print(<?m?>)
3728
3728
]]
3729
+
3730
+ TEST ' A' [[
3731
+ ---@class A
3732
+ ---@overload fun():A
3733
+ local m = {}
3734
+
3735
+ ---@return A
3736
+ function m:init()
3737
+ return <?self?>
3738
+ end
3739
+ ]]
You can’t perform that action at this time.
0 commit comments