diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-03-18 21:25:25 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-03-18 21:25:25 +0800 |
commit | 84c840eba46136a1d29d27b9969cb4772e9b83c5 (patch) | |
tree | 696ab1023980d3ebb5cac54a1f5fd3540f21cf46 /script/core | |
parent | bf5ee64312ef766c3f1ec34f10ac9662e9e214fa (diff) | |
download | lua-language-server-84c840eba46136a1d29d27b9969cb4772e9b83c5.zip |
fix runtime errors
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/guide.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/guide.lua b/script/core/guide.lua index 45c93f69..fee057d6 100644 --- a/script/core/guide.lua +++ b/script/core/guide.lua @@ -2606,7 +2606,7 @@ local function findGenericFromArgIndexToReturnIndex(func, argIndex) local paramType for _, doc in ipairs(func.bindDocs) do if doc.type == 'doc.param' then - if doc.extends.paramIndex == argIndex then + if doc.extends and doc.extends.paramIndex == argIndex then paramType = doc.extends break end |