summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-22 16:13:50 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-22 16:13:50 +0800
commite5d692cb0845e5de7988904017440bd4db551bb7 (patch)
treedcfad1a5b739f3f7987d2baf5c4d6979b754b78f /script/vm
parent82c3b68c6b80f754aa9fc12a4f029eba237e2807 (diff)
downloadlua-language-server-e5d692cb0845e5de7988904017440bd4db551bb7.zip
`param-type-mismatch`
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/type.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/vm/type.lua b/script/vm/type.lua
index e6541f1b..ecca4382 100644
--- a/script/vm/type.lua
+++ b/script/vm/type.lua
@@ -72,6 +72,9 @@ function vm.isSubType(uri, child, parent, mark)
and vm.isSubType(uri, child, n, mark) then
return true
end
+ if n.type == 'doc.generic.name' then
+ return true
+ end
end
if parent:isOptional() then
if vm.isSubType(uri, child, 'nil', mark) then