diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-28 19:09:39 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-28 19:09:39 +0800 |
commit | 7e778b31476831864dff995ae3ae4e5f223c5726 (patch) | |
tree | b570499b7b70014067d9e5cd737088df474b7c76 /script/parser | |
parent | 09cd9882be4b66f270c74516759844683832b1d4 (diff) | |
download | lua-language-server-7e778b31476831864dff995ae3ae4e5f223c5726.zip |
new diag `return-type-mismatch`
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/guide.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua index 83c84964..8de08ef9 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -1090,12 +1090,12 @@ end ---@param a table ---@param b table ---@return string|false mode ----@return table pathA? ----@return table pathB? +---@return table? pathA +---@return table? pathB function m.getPath(a, b, sameFunction) --- 首先测试双方在同一个函数内 if sameFunction and m.getParentFunction(a) ~= m.getParentFunction(b) then - return false, nil, nil + return false end local mode local objA @@ -1139,7 +1139,7 @@ function m.getPath(a, b, sameFunction) end end if not start then - return false, nil, nil + return false end -- pathA: { 1, 2, 3} -- pathB: {5, 6, 2, 3} |