diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-20 19:20:53 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-20 19:20:53 +0800 |
commit | a04cffb43132645f63e5a319f6ca69e0df87dcdb (patch) | |
tree | 6a86e894e08bf45d258bedd0240e61389ba6a94e /script/vm/type.lua | |
parent | f7399c6206378b76c87a7386707cf8e24d5a98ac (diff) | |
download | lua-language-server-a04cffb43132645f63e5a319f6ca69e0df87dcdb.zip |
update
Diffstat (limited to 'script/vm/type.lua')
-rw-r--r-- | script/vm/type.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/script/vm/type.lua b/script/vm/type.lua index fd4c1a17..d3182eaa 100644 --- a/script/vm/type.lua +++ b/script/vm/type.lua @@ -87,12 +87,11 @@ function vm.isSubType(uri, child, parent, mark) return true end - if (childName == 'true' or childName == 'false') - and parentName == 'boolean' then + -- TODO: check duck + if parentName == 'table' and not guide.isBasicType(childName) then return true end - - if parentName == 'table' and not guide.isBasicType(childName) then + if childName == 'table' and not guide.isBasicType(parentName) then return true end |