diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-23 14:39:42 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-23 14:39:42 +0800 |
commit | 8c56e6ba9d85f3e01fb3658901386ee89de847ab (patch) | |
tree | 1430ef6c8f84e7bd3db3e7f497d69c8de2f1df62 /script/vm | |
parent | 5c0f9c4672b564da6d54ac8649afe199e4d7b1d7 (diff) | |
download | lua-language-server-8c56e6ba9d85f3e01fb3658901386ee89de847ab.zip |
update
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/type.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/script/vm/type.lua b/script/vm/type.lua index 982f937d..d8adac6e 100644 --- a/script/vm/type.lua +++ b/script/vm/type.lua @@ -58,6 +58,11 @@ function vm.isSubType(uri, child, parent, mark) return false end end + if child:isOptional() then + if not vm.isSubType(uri, 'nil', parent, mark) then + return false + end + end return true end |